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.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Route a Failover IP to a home router
pbalazs123
Member
Hi folks!
I have a CentOS server at OVH with one IP + a failover IP, 51.254.x.x and 91.134.x.x. Currently, 51.254.x.x is assigned to eth0, and 91.134.x.x is assigned to eth0:1.
I have a Mikrotik router in a remote location behind NAT. How the router can use the IP address 91.134.x.x as its primary IP address?
Currently a L2TP/IPSec tunnel is working between the Mikrotik router and the CentOS VPS but i'd like to forget all those port forwarding rules...
Thanks!
Comments
No one?
sorry, you don't have a choice here
I would suggest an OpenVPN link in topology subnet. Add a static ARP entry on your server then route the traffic to the tun interface.
You could simply use any tunneling protocol, add a route to your router and back for @internet (0.0.0.0/0).
Between your home router and OVH you need a tunnel with a seperate subnet which acts as transfer network (/30 should be enough).
@UrDN
OpenVPN is not working on the Mikrotik router due to an encapsulation problem...
If i do this way then i have to order another IP right? If not then i'm gonna make a loop.
No, you only need your failover ip, the rest is done by a private subnet which acts as transfer subnet ;-)
At home, I have the same setup running to do BGP over OpenVPN and route static ip-addresses
I guess you'd have to proxy-arp or some such because of the way OVH assigns the IP's (I.e they're not routed to your server but rather just bridged/placed on the Vlan)
I understand this, but i'm using the Failover IP to establish the L2TP/IPsec tunnel that's why i asked. On the main IP i'm using other things...
Btw, UDP on MikroTik will be available starting from RouterOS v7.
Which probably isn't coming anytime soon.
Any command line examples?
...and route static ip-addresses
They promised a final release for this year.
a GRE tunnel might be what you're looking for .. you can then use iptables on the OVH VPS to forward all or selected ports from your failover IP to your home router
Just have a look at the linux route command (route add is what you want) and also openvpn static client ip-addressing, this should help you most ;-)