Accessing shared folders over IPSec Site to site VPN

Options
Davidcloude2023
Davidcloude2023 Posts: 12
10 Comments Friend Collector
edited March 2023 in Security

I have 1 ATP200 and 1 USG flex 100 connected with a wizard-created IPSec site-to-site VPN. Both devices show the VPN as connected with a green globe.but we cannt access or ping to each other from office 1 to office 2 or office 2 to office 1.

we tried \\192.xx.xx\folder and \\pcname\folder and nothing and ping does not work either!

we have been trying for 1 week and nothing helped. thank you

Purpose:1 pc from office 1 has the shared folders that people from office 2 need to acces!

usg flex 100 is connected tot the router(ex: 84.212.36.16) and that is where he gets internet from (lan2) .

i did put DMZ on USG so there will be no firewall rules blocking VPN and i did alsaw open ports (portforwarding):

• UDP 500 ‘Port based Rule’ (IKE)

• UDP 4500 ‘Port based Rule’ (NAT traversal)

Office 1: Router ->> USG100 ->>> PC(shared folders) (Public IP: 84.212.36.16)
Office 2: Router ->> ATP200 ->>> computers (Public IP: 215.62.33.11)

===================================
Office 1 (USG flex 100):
===================================

Public IP router: (ex: 84.212.36.16)
WAN (DHCP) : 10.0.0.25
LAN2 STATIC: 192.168.2.1 / 255.255.255.0
PC with the shared folders IP: 192.168.2.33

===================================
Office 2 (ATP200):
===================================

Public IP router: (ex: 215.62.33.11)
WAN1 (DHCP) : 192.168.3.4 LAN1
STATIC: 192.168.1.1 / 255.255.255.0

=================================

Office 1 IPSec Site to Site: VPN GW


VPN IPSec site to site connection:



Office 2 IPSec Site to Site: VPN GW / VPN Connection:

Services:

I have tested to add more ports to services to make it work but nothing happend1 i have alsaw not added any policy rule!!


thank you and sorry long explanation.

Accepted Solution

  • PeterUK
    PeterUK Posts: 2,770  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    edited March 2023 Answer ✓
    Options

    Add the follow routing rules at the top of then list

    office2

    incoming LAN1

    destination subnet 192.168.2.0 / 255.255.255.0

    next hop

    type VPN Tunnel

    IPSec_VPN

    office1

    incoming LAN2

    destination subnet 192.168.1.0 / 255.255.255.0

    next hop

    type VPN Tunnel

    IPSec_VPN

«1

All Replies

  • PeterUK
    PeterUK Posts: 2,770  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    Have you tested the shared folder on the same network?

    Windows firewall might be blocking it

    test by

    \\192.168.2.33

  • Davidcloude2023
    Options

    thank you for your respond. ☺️

    the computers in office 1 can acces the shared folders and we turned off the windows defender/firewall off from both sites/offices.

  • TrondBKSuleimanCo
    TrondBKSuleimanCo Posts: 19  Freshman Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    I am pretty sure you need to create a policy rule to allow the packets to travel from LAN on one side over to the connection link. I don't remember the exact details, but I believe you need to add the policy rules on both sides, allowing NetBIOS traffic to go through the VPN connection.

  • Davidcloude2023
    Options

    thank you for your replay, do you have any example how to do that since i am still a beginner learning zyxel routers. thank you verry much

  • jasailafan
    jasailafan Posts: 191  Master Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    @Davidcloude2023
    Try to enable NetBIOS broadacst over IPSec on both devices and you should be able to access the shared folder are the remote site by IP address without extra policy routes. Here are some examples.
    https://community.zyxel.com/en/discussion/comment/33694#Comment_33694
    https://community.zyxel.com/en/discussion/comment/16067#Comment_16067

  • Davidcloude2023
    Davidcloude2023 Posts: 12
    10 Comments Friend Collector
    edited March 2023
    Options

    Site to site is connected and Enabling NetBIOS broadcast on both devices. still not able to ping or acces shared folders . any idea's for policy control or routing rules that should be added.

    thank you

  • PeterUK
    PeterUK Posts: 2,770  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Options

    By default windows will not allow another subnet to access a shared folder there are two ways around this but as to have disable the windows firewall this is likely but the problem.

    You need and firewall rule on Office 2

    from LAN1

    to IPSec_VPN

    You need and firewall rule on Office 1

    from IPSec_VPN

    to LAN2

  • Davidcloude2023
    Options


    this is what i get when try to ping from office1 to office2:

    C:\Users\user1>ping 192.168.1.33 (local ip of office2 computer)

    Pinging 192.168.1.33 with 32 bytes of data:
    Response from 192.168.2.1: The target host is not reachable.
    Response from 192.168.2.1: The target host is not reachable.
    Response from 192.168.2.1: The target host is not reachable.
    Response from 192.168.2.1: The target host is not reachable.

    Ping stats for 192.168.1.33:
    Packets: sent = 4, received = 4, lost = 0
    (0% loss).

    No logs in logs panel

    when i ping from office2 to office1 ping 192.168.2.33

    i get this in logs:

    Security Policy Control

    priority:1, from LAN1 to IPSec_VPN, ICMP Type:8, service others, ICMP Type:8, ACCEPT

    192.168.1.33

    192.168.2.33

    ACCESS FORWARD

  • PeterUK
    PeterUK Posts: 2,770  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    edited March 2023
    Options

    To ping from office1 to office2 you need

    firewall rule on Office 2

    from IPSec_VPN

    to LAN1

    firewall rule on Office 1

    from LAN2

    to IPSec_VPN

    I don't get why you can't ping from office2 to office1

    do you get logs in office 1?

  • PeterUK
    PeterUK Posts: 2,770  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    edited March 2023 Answer ✓
    Options

    Add the follow routing rules at the top of then list

    office2

    incoming LAN1

    destination subnet 192.168.2.0 / 255.255.255.0

    next hop

    type VPN Tunnel

    IPSec_VPN

    office1

    incoming LAN2

    destination subnet 192.168.1.0 / 255.255.255.0

    next hop

    type VPN Tunnel

    IPSec_VPN

Security Highlight