Re: quesito IPTABLES
On Thu, 13 Jan 2005 14:14:53 +0100, paolo <paolo.larcheri@gmail.com> wrote:
> > DNAT tcp -- anywhere anywhere tcp
> > dpt:www to:192.168.1.2
>
> ehm... questa, a meno di '-s 192.168.1' è praticamente la stessa regola
> che ti ho passato io.
>
> Voglio esserne sicuro! Posta l'output di 'iptables -L -v -t nat'.
>
> Paolo
> iptables -L -v -t nat
Chain PREROUTING (policy ACCEPT 20439 packets, 1248K bytes)
pkts bytes target prot opt in out source destination
2 82 ACCEPT all -- any any anywhere 224.0.0.0/3
0 0 REDIRECT tcp -- br0 any anywhere
anywhere tcp dpt:5190 redir ports 5190
0 0 REDIRECT tcp -- br0 any anywhere
anywhere tcp dpt:1863 redir ports 1863
17 916 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:ssh to:192.168.1.2
0 0 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:5901 to:192.168.1.2
0 0 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:10000 to:192.168.1.2
7 348 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:4662 to:192.168.1.2
0 0 DNAT udp -- ppp41 any anywhere
anywhere udp dpt:4672 to:192.168.1.2
1 60 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:smtp to:192.168.1.2
48 2564 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:www to:192.168.1.2
503 24624 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:https to:192.168.1.2
0 0 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:1723 to:192.168.1.2
0 0 DNAT 47 -- ppp41 any anywhere
anywhere to:192.168.1.2
0 0 DNAT tcp -- ppp41 any anywhere
anywhere tcp dpt:47 to:192.168.1.2
0 0 DNAT 47 -- ppp41 any anywhere
anywhere to:192.168.1.2
0 0 DNAT udp -- ppp41 any anywhere
anywhere udp dpt:4665 to:192.168.1.2
228 15273 DNAT udp -- br0 any anywhere
192.168.1.1 udp dpt:domain to:212.216.112.112
Chain POSTROUTING (policy ACCEPT 831 packets, 44942 bytes)
pkts bytes target prot opt in out source destination
453 28943 MASQUERADE all -- any ppp41 192.168.1.0/24 anywhere
Chain OUTPUT (policy ACCEPT 311 packets, 18222 bytes)
pkts bytes target prot opt in out source destination
>
Reply to: