Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop

In this Discussion

New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

OpenVPN and failover ips?

xrzxrz Barred
edited June 2016 in Help

I run OpenVPN with --multihome option, how to setup it the way i connect to failover ip (OVH failover to be clear) and show exit ip as i connect to failover ip? i managed to only show original ip of server not the failover one.

Comments

  • BasilBasil Member
    edited June 2016

    I think you'd need 1:1 NAT for this, You can use iptables for this.
    https://dd-wrt.com/wiki/index.php/One-to-one_NAT

    That guide should cover the rules that you'll need (It did for me)

    I think you'd need to do it on a per-client IP basis, as I'm not sure how you'd automatically modify the rules depending on the IP used to connect.

    iptables -t nat -I POSTROUTING -s [VPN CLIENT IP] -j SNAT --to-source [FAILOVER IP]

    Something like that

    Thanked by 1xrz
  • xrzxrz Barred
    edited June 2016

    Thx much !!!

    Needed to add :

    iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source [FAILOVER IP]

    and it works now:)

  • BasilBasil Member

    Nice! Glad I could help :)

Sign In or Register to comment.