Hi folks,
trying to put as much information into the title failed miserable. But as I caught your attention
I have a host with a mere 5 interfaces. Trying to get a new IP to work I just entered following rule into the INPUT chain of the filter table like this
Code:
iptables -t filter -I INPUT -p icmp -j ACCEPT
Nice stuff about is that the counter of this rule I'm checking with
iptables -L INPUT -vn --line-numbers always stays on 0.
Having confirmed with tcpdump that packets arrives on the right interface I'm out of ideas (on the filter table). But there is just no outgoing packet. So I assume the packet is blocked some where.
So I checked on the nat rules:
Code:
name:~/dir# iptables-save -t nat
# Generated by iptables-save v1.4.8 on Thu Sep 6 15:27:26 2012
*nat
:PREROUTING ACCEPT [885:74036]
:POSTROUTING ACCEPT [767:64105]
:OUTPUT ACCEPT [35:2235]
-A PREROUTING -s 192.168.5.0/24 -j ACCEPT
-A PREROUTING -d externel_ip_/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.5.167:80
-A PREROUTING -d other_external_ip/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.20.2:80
-A PREROUTING -d external_ip/32 -p tcp -m tcp --dport 29700 -j DNAT --to-destination 192.168.5.167:29700
-A PREROUTING -d external_ip/32 -p tcp -m tcp --dport 29720 -j DNAT --to-destination 192.168.5.167:29720
-A POSTROUTING -s 192.168.5.0/24 -o eth0 -j SNAT --to-source external_ip
-A POSTROUTING -s 192.168.5.0/24 -j ACCEPT
COMMIT
# Completed on Thu Sep 6 15:27:26 2012
As there are no rules for icmp I wonder where my packets go?
Okay maybe we have something in /etc/hosts.deny or /etc/hosts.allow.
Code:
name:/proc/net# grep -v '#' /etc/hosts.allow /etc/hosts.deny
/etc/hosts.deny:
So anyone has any idea where I could look next? Maybe some sysctl or /proc/net rules?