LAN (10.0.0.0/24) > (eth0: 10.0.0.62) Debian Router (eth1:
172.16.0.62) > modem (172.16.0.1) > internet
I have change /proc/sys/net/ipv4/ip_forward from 0 to 1
and Routing table is:
Code:
Destination Gateway Genmask Flags Metric Ref
Use Iface
172.16.0.62 * 255.255.255.255 UH 0 0
0 eth0
10.0.0.62 * 255.255.255.255 UH 0 0
0 eth0
10.0.0.0 10.0.0.62 255.255.255.0 UG 0 0
0 eth0
10.0.0.0 * 255.255.255.0 U 0 0
0 eth0
172.16.0.0 172.16.0.62 255.255.255.0 UG 0 0
0 eth1
172.16.0.0 * 255.255.255.0 U 0 0
0 eth1
default 172.16.0.1 0.0.0.0 UG 0 0
0 eth1
But client not connect internet when use debian router
Help me config debian router. Thank pro so mush.
You need to set up ip masquerading. Since it's a Debian system, you can
install the ipmasq package.