firewireee |
01-06-2007 08:22 AM |
how to change ssh tunnel source ip
I use SSH tunnels ( -D ) to access my local network from outside.
But the last machine I configured I can't surf local network because my source ip is from ppp0 and not eth1.
Is there any way to setup witch ethernet device ssh uses ?
Code:
suzn:/# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
BSN-access.dsl. * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
239.0.0.0 * 255.0.0.0 U 0 0 0 eth1
default * 0.0.0.0 U 0 0 0 ppp0
suzn:/# ifconfig
eth0 Link encap:Ethernet HWaddr 00:60:97:D5:C6:25
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5077234 errors:1 dropped:0 overruns:0 frame:1
TX packets:4264111 errors:0 dropped:0 overruns:0 carrier:1
collisions:66201 txqueuelen:1000
RX bytes:4265669470 (3.9 GiB) TX bytes:1338685241 (1.2 GiB)
Interrupt:11 Base address:0x1080
eth1 Link encap:Ethernet HWaddr 00:50:04:82:FC:BA
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1044871 errors:1 dropped:0 overruns:0 frame:1
TX packets:1660743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:105912003 (101.0 MiB) TX bytes:1941903675 (1.8 GiB)
Interrupt:10 Base address:0x1000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:43116 errors:0 dropped:0 overruns:0 frame:0
TX packets:43116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10901119 (10.3 MiB) TX bytes:10901119 (10.3 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:195.210.*.* P-t-P:213.250.19.90 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:3039676 errors:0 dropped:0 overruns:0 frame:0
TX packets:2574576 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2613565506 (2.4 GiB) TX bytes:742325278 (707.9 MiB)
suzn:/#
|