iptables not opening ports after reinstall of lenny
I have reinstalled lenny and used the same iptables used from the
previous install from backups. After days of trying to get my webserver
port 8080 to respond from outside the network and getting connection
refused or timed out, I think I've narrowed it down to the ports.
Opening port 5900 for VNC doesn't respond either after adding the rule
to input in iptables. I have forwarded the ports in the router and other
machines on the network and those ports open for other computers respond
just fine. I have tried disabling iptables and just depending on the
router and that doesn't seem to help with the ports. I still get
connection refused on canyouseeme.org. I will post my
/etc/network/interfaces and my iptables rules.
Can someone help?
http://pastebin.com/m1070b979
*/etc/network/interfaces*
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.101
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.1.1
pre-up /sbin/iptables-restore < /etc/iptables/rules
*My iptables rules*
linux:/home# iptables -vL
Chain INPUT (policy DROP 318 packets, 95518 bytes)
pkts bytes target prot opt in out source
destination
16535 12M ACCEPT all -- any any anywhere
anywhere state RELATED,ESTABLISHED
0 0 ACCEPT all -- lo any anywhere
anywhere
5 260 ACCEPT tcp -- any any 192.168.1.102
anywhere MAC 00:0F:3D:F7:71:DF tcp dpts:netbios-ns:netbios-ssn
19 3596 ACCEPT udp -- any any 192.168.1.102
anywhere MAC 00:0F:3D:F7:71:DF udp dpts:netbios-ns:netbios-ssn
0 0 ACCEPT udp -- any any 192.168.1.102
anywhere MAC 00:0F:3D:F7:71:DF udp dpt:ipp
0 0 DROP icmp -- any any anywhere
anywhere
0 0 ACCEPT icmp -- any any 192.168.1.102
anywhere MAC 00:0F:3D:F7:71:DF
0 0 ACCEPT tcp -- any any anywhere
anywhere tcp dpt:5901
0 0 ACCEPT tcp -- any any anywhere
anywhere tcp dpt:http-alt
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 18393 packets, 2532K bytes)
pkts bytes target prot opt in out source
destination
*ifconfig *
linux:/# ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:d8:50:e4:e6
inet addr:192.168.1.101 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17298 errors:0 dropped:0 overruns:0 frame:0
TX packets:18815 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12742840 (12.1 MiB) TX bytes:2981065 (2.8 MiB)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:664 (664.0 B) TX bytes:664 (664.0 B)
Reply to: