I'm new to ip routing and I'm having difficulty setting up my two links. I have a linux box that's coected to 192.168.1.1 on eth0 and gets the ip address 192.168.1.135. This is the inteet coection that my box will primarily use. It's also coected to 192.168.8.1 on eth1 and gets the ip address 192.168.8.100. This inteet coection is a backup, and will only be used to ssh in (or for other low-data things). I have been able to make outbound coections over both links.
I want to be able to ssh into the box from both public ip addresses. Currently, I caot ssh into the box on eth1. I presume the issue is because responses to ssh coections on eth1 are being sent from eth0.
In /etc/iproute2/rt_tables, I've added:
10 isp
13 gsm
And in a shell, I run
ip route add default via 192.168.1.1 dev eth0 table isp
ip route add default via 192.168.8.1 dev eth1 table gsm
ip route add default via 192.168.1.1 dev eth0 # default table
What have I missed?
And help would be appreciated!
برچسب:
نویسنده: استخدام کار