Answer the question
In order to leave comments, you need to log in
One server, two providers
Gentlemen, good afternoon.
The situation is this - I connected to an ethernet provider that does not issue white addresses to users, solid NAT.
Also available is an ADSL provider with a static address. A Debian 5.0 server that distributes torrents, DCs and other things.
Task: to make it so that I can reach the server via SSH and enter the web face of the rocking chair using an ADSL provider, but so that all other traffic goes through the ethernet.
Prompt literature.
Answer the question
In order to leave comments, you need to log in
If you go to the server from a fixed white address to, it will be enough to register a route on debian
ip route add -host 200.10.0.1 via 100.10.1.254 dev eth1
In /etc/iproute2/rt_tables create a table, for example ppp
Add a default route to it: ip route add default via 1.2.3.4 dev ppp0 table ppp
And finally a rule: ip rule add from 1.2.3.4 table ppp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question