Help needed in IPTables firewall/router setup - Linux


 
Thread Tools Search this Thread
Special Forums Cybersecurity Help needed in IPTables firewall/router setup - Linux
# 1  
Old 08-24-2007
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
# 2  
Old 11-06-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux router help needed

hi guys. I have an Kaon router wich runs "Linux version 3.10.24-svn1480 (jskim@jake-205) (gcc version 4.4.7 (Realtek MSDK-4.4.7 Build 1459". The problem I have it is that its firmware is in early stages and has alot of things messed up. Wake on lan doesn't work without arp binding and that can... (23 Replies)
Discussion started by: apoklyps3
23 Replies

2. SuSE

setup Linux as a wireless router

Hi I've done some google searching but haven't really found anything that seems to be what I need. First I should add it's been awhile since I have run Linux but that's changing :) What I'm after doing is setting up a Linux box as a wireless router. I will be running the Suse distro if I... (2 Replies)
Discussion started by: woofie
2 Replies

3. UNIX for Dummies Questions & Answers

how to configure a linux box as a firewall using iptables

I have already compiled the kernel and configured it to run as a firewall. My computer has 2 NICs and is on two seperate networks. I can ping both networks from my computer, but workstations on one network can not ping workstations on the other. What Scripts or commands do I need to install ? (2 Replies)
Discussion started by: Deuce
2 Replies
Login or Register to Ask a Question