I have a pool of public IP addresses. OpenVPN listens on the 1st one via UDP.
I have some people working for me, they need to have a static IP in my realm.
Anyway, so the idea was to install an OpenVPN server (routing mode), which I did, make it a default route and SNAT their IP to one of the other IPs on one of my public network.
OpenVPN listening on 18.104.22.168 (public) eth0, clients comming into 192.168.240.6 - .10,14,18...etc
then I SNAT them to one of the other IPs in the public range, like:
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.240.6 -j SNAT --to-source 22.214.171.124 <- the next public IP address
and so on
But I get broken pipe(s), so I guess I'm postrouting something that I shouldn't. I have only one ETH port on the server, eth0 (with 126 aliases in the public pool).
Is this doable at all with one interface?
Use this forum to share your network setup and what's been working for you.
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest