[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Route without masquerade



Hi all.

I'm trying to get my Debian to route without masquerading, but didn't work :(

Eth0: 192.168.0.0/24
Eth1: 10.165.50.0/24

ipv4_forward enabled, routes are OK....but didn't work :(

hesrv-lx01:/etc/dhcp3# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.165.50.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         10.165.50.5     0.0.0.0         UG    0      0        0 eth1


hesrv-lx01:/etc/dhcp3# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


I have an laptop on eth0 with IP 192.168.0.10, with i can ping 10.165.50.179 (server), but i can't ping another host on 10.165.50.X network
hesrv-lx01:/etc/dhcp3# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:23:7d:fd:63:5b
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::223:7dff:fefd:635b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2630 errors:0 dropped:0 overruns:0 frame:0
          TX packets:553 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:223415 (218.1 KiB)  TX bytes:52652 (51.4 KiB)
          Memory:fcde0000-fce00000

eth1      Link encap:Ethernet  HWaddr 00:26:55:11:51:fb
          inet addr:10.165.50.179  Bcast:10.165.50.255  Mask:255.255.255.0
          inet6 addr: fe80::226:55ff:fe11:51fb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8513 errors:0 dropped:0 overruns:0 frame:0
          TX packets:949 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1039298 (1014.9 KiB)  TX bytes:89258 (87.1 KiB)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)



What's wrong?

Tks!


Reply to: