OpenVPN connected but not hiding IP

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
acanlord
DD-WRT Novice


Joined: 23 Aug 2023
Posts: 4

PostPosted: Mon Sep 25, 2023 18:11    Post subject: OpenVPN connected but not hiding IP Reply with quote
Hello, I have my openvpn connection up and running with the latest version of dd-wrt on Linksys WRT 1200 AC. My vpn status shows connected however when connected to the router external sources still show my ip unmasked. I came across the following doc:
https://openvpn.net/community-resources/how-to/#redirect and am looking at the following section: Routing all client traffic (including web-traffic) through the VPN

I tried entering the following lines as suggested in the "Additional Config" section w/o any luck.

push "redirect-gateway def1"
push "redirect-gateway local def1"
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE


Any feedback is appreciated.
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1638

PostPosted: Mon Sep 25, 2023 19:26    Post subject: Reply with quote
Policy-Based Routing. Read the documentation in the sticky in this forum area...
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12507
Location: Netherlands

PostPosted: Tue Sep 26, 2023 7:30    Post subject: Reply with quote
My esteemed colleague already set you on the right track for the documenation: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327398
A sticky (first few threads) in this forum.

That is all we can do as we are lacking the necessary information e.g.:
Build number
Setup
Logs
etc.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT 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