PDA

Bekijk de volledige versie : "iptables --list PREROUTING -t nat" freezes?



jago25_98
26-08-2008, 13:08
And ports aren't forwarding. Firmware is 1.9.2.7-7f


According to the web interface log:

Destination Proto. Port Range Redirect to
all ALL ALL 192.168.1.103
all TCP 8082 192.168.1.4
all TCP 51413 192.168.1.4
all TCP 8081 192.168.1.103


[admin@(none) root]$ iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere state NEW
ACCEPT all -- anywhere anywhere state NEW
SECURITY all -- anywhere anywhere state NEW

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere
SECURITY all -- anywhere anywhere state NEW
ACCEPT all -- anywhere anywhere ctstate DNAT

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain MACS (0 references)
target prot opt source destination

Chain SECURITY (2 references)
target prot opt source destination
RETURN tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN limit: avg 1/sec burst 5
RETURN tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5
RETURN udp -- anywhere anywhere limit: avg 5/sec burst 5
RETURN icmp -- anywhere anywhere limit: avg 5/sec burst 5
DROP all -- anywhere anywhere

Chain logaccept (0 references)
target prot opt source destination
LOG all -- anywhere anywhere state NEW LOG level warning tcp-sequence tcp-options ip-options prefix `ACCEPT '
ACCEPT all -- anywhere anywhere

Chain logdrop (0 references)
target prot opt source destination
LOG all -- anywhere anywhere state NEW LOG level warning tcp-sequence tcp-options ip-options prefix `DROP '
DROP all -- anywhere anywhere
[admin@(none) root]$ /sbin/iptables --list PREROUTING -t nat
-sh: /sbin/iptables: not found
[admin@(none) root]$ /sbin/iptables --list OUTPUT -t nat
-sh: /sbin/iptables: not found
[admin@(none) root]$ iptables --list OUTPUT -t nat
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[admin@(none) root]$ iptables --list PREROUTING -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

(just freezes??)

jago25_98
26-08-2008, 13:10
It actually just takes a very loine time to list:

[admin@(none) root]$ iptables --list PREROUTING -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

VSERVER all -- anywhere 192.168.1.100
NETMAP udp -- anywhere 192.168.1.100 udp spt:6112 192.168.1.0/24
autofw tcp -- anywhere anywhere tcp dpt:51413 autofw tcp dpt:51413 to:51413
[admin@(none) root]$

Tamadite
27-08-2008, 19:12
It actually just takes a very loine time to list:

[admin@(none) root]$ iptables --list PREROUTING -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

VSERVER all -- anywhere 192.168.1.100
NETMAP udp -- anywhere 192.168.1.100 udp spt:6112 192.168.1.0/24
autofw tcp -- anywhere anywhere tcp dpt:51413 autofw tcp dpt:51413 to:51413
[admin@(none) root]$


try with option -n