IPTables/Route and multiple interfaces configuration
Hello!
I'm not a linux expert but I've this scenario, a Debian box running with multiple network cards: 1. eth0 - Internet Connection via local Router (172.20.1.x , 255.255.255.0) 2. ppp0 - Dial-up to a network without internet (10.x.x.x , 255.255.255.255) My goal is to be able to surf the web on this machine and allow SSH and other services to be accessible from the two networks. Right now, I'm able to reach the router on eth0 (172.20.1.1), but I can't get to google or anywhere else on the internet as you can see bellow... (And no, it's not a DNS issue. I tried the IP) Quote:
Quote:
Quote:
How can I do it? I tried some custom ip route routes but I wasn't able to get it work. :( Thank you! |
After a long search e come across a solution but I'm not sure about some parameters...
Supposing that eth0 has the IP 172.20.1.7 and ppp0 has 10.184.225.42. Quote:
I took that from http://unix.stackexchange.com/questi...s-two-gateways. Thanks. |
So... I managed to solve this issue by:
Quote:
This way I'm able to reach the internet and still be accessible over the ppp0 dial-up. |
All times are GMT -5. The time now is 08:45 PM. |