![]() Ip route add default table 100 via $(nvram get wan_gateway) ![]() ![]() Ip route show table main | grep -Ev ^default | grep -Ev tun1 | while read ROUTE do # NOTE: Here I assume the OpenVPN tunnel is named "tun1". # Then configure table 100 to route all traffic out the WAN gateway and assign it mark "1" # Copy all non-default and non-VPN related routes from the main table into table 100. # Delete table 100 and flush any existing rules if they exist. I read a few thread on this topic, so I tried the following: If I do so, I struggle to keep an external access to the NAS. I wish to include the NAS in the devices running behind the VPN. I set some port forwarding rules to allow remote access to the NAS, on port 80, 443, 5736 to 5738 (both on the D6400, rerouting to the Linksys, and on the Linksys rerouting to the NAS). Remote access to the NAS, using maintly https, port 5737. OpenVPN (IPVanish), Policy Based Routing set for a few devices ![]() ![]() D6400, used as my ISP router (ISP supplied WAN IP, LAN IP 192.168.0.1) Posted: Thu 16:43 Post subject: Port forwarding with openVPN running ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |