Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I setup a VPN yesterday and I set it up so internet traffic can be routed thru the VPN. I assigned different external IPs to different internal IPs the client connects with
10.9.0.3 > 64.xx.xx.179
10.9.0.4 > 64.xx.xx.175
And so on. Anyway I reboot the server yesterday and moved the listen IP to another IP for organizational reasons now my nat routing is not working anymore. Every client is connecting fine and getting out to the internet and into the server but their all stuck on the same external IP. Maybe I was seeing things but pretty sure I had it right...
I setup a VPN yesterday and I set it up so internet traffic can be routed thru the VPN. I assigned different external IPs to different internal IPs the client connects with
10.9.0.3 > 64.xx.xx.179
10.9.0.4 > 64.xx.xx.175
And so on. Anyway I reboot the server yesterday and moved the listen IP to another IP for organizational reasons now my nat routing is not working anymore. Every client is connecting fine and getting out to the internet and into the server but their all stuck on the same external IP. Maybe I was seeing things but pretty sure I had it right...
They are all stuck on the same ip ??
Would it be this ip by any chance? 64.xx.xx.179
But then this is what your SNAT rule says....??
What if you had a rule for each ip address? Or change the SNAT range.
They are all stuck on the same ip ??
Would it be this ip by any chance? 64.xx.xx.179
But then this is what your SNAT rule says....??
What if you had a rule for each ip address? Or change the SNAT range.
They are all stuck on .176 ip. I have 4 Ips on the server and I had the VPN listening on 179 but I moved it to 176 so I could access tbe web gui from a domain name. Anyway it outputs the same Ip on all clients. Internal IP is different of course but external Ip is the same.
Quote:
Originally Posted by SuperJediWombat!
The subnet mask for your source address should be /32 if you are doing a 1 to 1 SNAT.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.