to co chciales + gratis :)
bo zalozylem watek tu
http://online.pl/pages/?q=node/1328
i tam chcieli tez inne logi
iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere eclXXX.internetdsl.tpnet.pl tcp dpt:7777 to:192.168.100.101:7777
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
-----------------------------------------------------------------
iptables -L -n -v
Chain INPUT (policy ACCEPT 546 packets, 60996 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
81 3820 TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS clamp to PMTU
1636 712K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- * * 0.0.0.0/0 83.14.167.XXX tcp dpt:7777
1140 139K ACCEPT all -- eth0 br0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 194 packets, 33989 bytes)
pkts bytes target prot opt in out source destination
-----------------------------------------------------------------
iptables -L -n -v -t nat
Chain PREROUTING (policy ACCEPT 71660 packets, 8096K bytes)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 83.14.167.XXX tcp dpt:7777 to:192.168.100.101:7777
Chain POSTROUTING (policy ACCEPT 146 packets, 12314 bytes)
pkts bytes target prot opt in out source destination
1145 139K MASQUERADE all -- * br0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 176 packets, 11248 bytes)
pkts bytes target prot opt in out source destination
-----------------------------------------------------------------
iptables -L -n -v -t mangle
Chain PREROUTING (policy ACCEPT 442K packets, 208M bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 51133 packets, 5366K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 382K packets, 201M bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 26439 packets, 4139K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 408K packets, 205M bytes)
pkts bytes target prot opt in out source destination
z ta regulka ktora podales zaraz sie pobawie... qrde nie dosc ze projekt na jutro to jeszcze co chwile pradu w domu nie ma :/