Help needed in IPTables firewall/router setup - Linux

HI all,

I have setup IPTables firewall/Router and my home network, with address space 192.168.10.XXX

Form my private network hosts, i can ping the gateway ( 192.168.10.101 ) , but the reverse is not happening.

Can someone help me as of what i need to do, so that i can ping my private hosts form the gateway.

........................................................................................................................................
Also some additional details about my network.

I have a 2 MBps adsl connection form an ISP.

and have two cards in my gateway, One card ( eth1 ) connected to adsl router, and second card ( eth0 ) connected to my private network ( a d-link unmanaged 8 port switch )

[root@chandan-gateway ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:48:37:18:E2
inet addr:192.168.10.101 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::280:48ff:fe37:18e2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2568 errors:3 dropped:0 overruns:0 frame:0
TX packets:4302 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:189676 (185.2 KiB) TX bytes:5704882 (5.4 MiB)
Interrupt:18 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:07:E9:0F:8D:7F
inet6 addr: fe80::207:e9ff:fe0f:8d7f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40815 errors:0 dropped:0 overruns:0 frame:0
TX packets:37215 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:37509033 (35.7 MiB) TX bytes:4437726 (4.2 MiB)
Base address:0xc000 Memory:dd020000-dd040000

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:7757 errors:0 dropped:0 overruns:0 frame:0
TX packets:7757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:68684901 (65.5 MiB) TX bytes:68684901 (65.5 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:59.92.132.104 P-t-P:59.92.128.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:14058 errors:0 dropped:0 overruns:0 frame:0
TX packets:12594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:15879747 (15.1 MiB) TX bytes:1359325 (1.2 MiB)

[root@chandan-gateway ~]#

[root@chandan-gateway ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
59.92.128.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
[root@chandan-gateway ~]#

[root@chandan-gateway ~]# ping 192.168.10.101
PING 192.168.10.101 (192.168.10.101) 56(84) bytes of data.
64 bytes from 192.168.10.101: icmp_seq=1 ttl=64 time=0.091 ms
64 bytes from 192.168.10.101: icmp_seq=2 ttl=64 time=0.085 ms

--- 192.168.10.101 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.085/0.088/0.091/0.003 ms
[root@chandan-gateway ~]#
[root@chandan-gateway ~]#
[root@chandan-gateway ~]#
[root@chandan-gateway ~]# ping 192.168.10.111
PING 192.168.10.111 (192.168.10.111) 56(84) bytes of data.
From 192.168.10.101 icmp_seq=2 Destination Host Unreachable
From 192.168.10.101 icmp_seq=3 Destination Host Unreachable
From 192.168.10.101 icmp_seq=4 Destination Host Unreachable

--- 192.168.10.111 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3999ms
, pipe 3
[root@chandan-gateway ~]#
[root@chandan-gateway ~]#
[root@chandan-gateway ~]# ping 192.168.10.112
PING 192.168.10.112 (192.168.10.112) 56(84) bytes of data.
From 192.168.10.101 icmp_seq=2 Destination Host Unreachable
From 192.168.10.101 icmp_seq=3 Destination Host Unreachable
From 192.168.10.101 icmp_seq=4 Destination Host Unreachable

--- 192.168.10.112 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3
[root@chandan-gateway ~]#

........................................................................................................................................

All help appreciated. eagerly waiting for some help here.

Kind Regards,

-- Chandan

Hi All

Please reefer this link what do u want u can get her �..Website

Quick HOWTO : Ch14 : Linux Firewalls Using iptables - Linux Home Networking