The home network has two machines running debian, the server machine is working as gateway for the client the forward chain is enabled in the server, the server interface is ppp0 and eth0 and the client interface is eth1.
Now when ping the outside world this is the error:
Quote:
#ping google.com
ping: Unknown host google.com
|
when ping the local server that work
Quote:
#ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=0.209 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=1.23 ms
|
this is client machine connection information that obtained via dhcp:
Quote:
Ip Address 192.168.1.102
Broadcast Address 192.168.1.255
Subnet Mask 255.255.255.0
Default Route 192.168.1.1
Primay DNS 192.168.1.1
|
This is /etc/resolv.conf:
this is /var/run/dnsmasq/resolv.conf:
These are firewall forward rules:
Quote:
# iptables -nvL FORWARD
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * ppp0 0.0.0.0/0 0.0.0.0/0 state NEW,RELATED,ESTABLISHED
0 0 ACCEPT all -- ppp0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 LOG flags 0 level 4
0 0 ACCEPT tcp -- all * 0.0.0.0/0 0.0.0.0/0 tcp dpt:4662
0 0 ACCEPT udp -- all * 0.0.0.0/0 0.0.0.0/0 udp dpt:4665
0 0 ACCEPT udp -- all * 0.0.0.0/0 0.0.0.0/0 udp dpt:4672
0 0 ACCEPT udp -- all * 0.0.0.0/0 0.0.0.0/0 udp dpt:4665
|
These are firewall nat rules:
Quote:
#iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 4182 packets, 393K bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 2097 packets, 251K bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 13621 packets, 926K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 13621 packets, 926K bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- * ppp0 192.168.1.0/24 0.0.0.0/0
|