OpenVPN TUN no ping all devices

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
spyfly
DD-WRT User


Joined: 26 Jun 2010
Posts: 71

PostPosted: Thu May 23, 2019 1:19    Post subject: OpenVPN TUN no ping all devices Reply with quote
I have a main ADSL router with MOVISTAR in my local network in 172.16.0.1 and give dhcp to all devices and wifi, etc...

I have a dd-wrt router in 172.16.0.83 only for server OPENVPN, and i want configure a TUN type of vpn

I have this configuration, and client openvpn can conect ok
But if the client make ping to the main network:
ping 172.16.0.83 is ok
ping 172.16.0.1 is ko
ping 172.16.0.27 is ko

i need see all the equipements in my 172.16.0.x

can you help to me?

thanks

CONFIGURATION:



Sponsor
spyfly
DD-WRT User


Joined: 26 Jun 2010
Posts: 71

PostPosted: Thu May 23, 2019 6:42    Post subject: Reply with quote
the router of my isp dont have for make it chamges.
i will tray changin the router with dd-wrt of openvpn server.

maybe are there other options??? i can use push option of the openvpn for give to the clients this information about the route ????

is the push option valid??? and not modify the firewall commands of my router???
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 5785
Location: Netherlands

PostPosted: Thu May 23, 2019 7:37    Post subject: Reply with quote
You do not have to change the ISP router. Just follow the advice from @eibgrad

In my signature (bottom of this post) is an OVPN server setup guide.
There is a chapter about running an "OpenVPN server on a Wireless Access Point (WAP)"

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
OpenVPN Policy Based Routing guide: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard server setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
Wireguard client setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324624
Wireguard Advanced setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324787
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
spyfly
DD-WRT User


Joined: 26 Jun 2010
Posts: 71

PostPosted: Thu May 23, 2019 12:13    Post subject: Reply with quote
ok, i have seen the manual. Is only this method the unique possibility for resolve it??? isn't not possibly resolve this situation with push rules??
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 5785
Location: Netherlands

PostPosted: Thu May 23, 2019 13:07    Post subject: Reply with quote
The other possibility is also outlined by @eibgrad, that is setting a static route on your ISP router (and maybe an extra NAT rule but most of the ISP routers I have worked with do not need that as they are NATting all traffic)

But as you already said that you can not change anything on your ISP router this is the only way to do it

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
OpenVPN Policy Based Routing guide: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard server setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
Wireguard client setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324624
Wireguard Advanced setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324787
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
spyfly
DD-WRT User


Joined: 26 Jun 2010
Posts: 71

PostPosted: Thu May 23, 2019 21:46    Post subject: Reply with quote
i add

iptables -t nat -I POSTROUTING -s 172.16.3.0/24 -o br0 -j SNAT --to $(nvram get lan_ipaddr)

and now work fine!!! thanks a lot!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum