It looks like you're new here. If you want to get involved, click one of these buttons!
I'm wondering if someone can help me / advise if something is possible.
I have a UK Kimsufi 2G that I bought to use as a OpenVPN-AS (mainly VPN, but also some other stuff) so I can get a UK IP. Sadly I didn't check properly and found out its in France, so I purchased a UK failover IP ....
What I am trying to figure out is can I force all of my outbound traffic (or even just the VPN traffic) to appear as though it's coming from the UK failover IP or should i just give up ?
Cheers
Comments
Just switch the main IP to the UK IP address.
www.minivps.co.uk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksApparently not possible the OVH guys are telling me ...
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@nikc Why not? You just order a failover IP and select UK, you should then be able to map and assign that to your dedicated server.
Right? I'm sure I've done this before with UK IPs..
Asad
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYeh done that, followed the instruction to setup the failover as eth0:0 (UK IP) but my outbound traffic still comes from the IP assigned to eth0 (FR IP) ....
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@nikc Set it as the main IP for eth0.
What program are you trying to use the UK IP with? Bind it to the UK IP or set that as the outgoing IP.
Asad
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksPerhaps you did not go to the AS configuration and set the interface as eth0:0 and reboot?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThis works just fine, I've tried it before too.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksFlipping the IP works fine or ?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYes, just assign it to eth0 and drop the other IP completely and it'll work.
www.minivps.co.uk
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksKeep the same GW etc etc ? literally just swap it over so the old IP is ?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYes, @nikc.
The IPs may be from different subnets, but your GW still stays three.octents.of-main.ip.254.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksDidn't work changing the IP ... it's just fell off the net and I had to rebuild :(
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksWhy don't you just connect over IPv6 when experimenting with changing IPv4 addresses.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks^ That too.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYou can use the 2nd IP address for OpenVPN traffic by setting it in the /etc/openvpn server conf file:
local {ip_address_to_use}
And also set it for the iptables nat rule:
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -j SNAT --to {ip_address_to_use}
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks