iptables Problem

P

proflan

Jungspund
Hallo zusammen,

ich habe ein Problem mit einer iptables Regel. Möchte Anfragen eines Linksys-Routers (iptables-box) ins Internet über einen transparenten Proxy (squid-box) senden. Normalerweise sollten diese Regeln funktionieren:

Code:
iptables -t nat -A PREROUTING -i eth0 -s ! squid-box -p tcp --dport 80 -j DNAT --to squid-box:3128
iptables -t nat -A POSTROUTING -o eth0 -s local-network -d squid-box -j SNAT --to iptables-box
iptables -A FORWARD -s local-network -d squid-box -i eth0 -o eth0 -p tcp --dport 3128 -j ACCEPT

Bei der zweiten Regel gibt es aber komischerweise folgende Fehlermeldung:

Code:
iptables v1.3.3: Unknown arg `--to'
Try `iptables -h' or 'iptables --help' for more information.

mit "--to-source" kommt leider der selbe Fehler:

Code:
iptables v1.3.3: Unknown arg `--to-source'
Try `iptables -h' or 'iptables --help' for more information.

Weiß jemand Rat?
 

Ähnliche Themen

Port Forwarding mit iptables

ip6tables Problem

iptables verständniss frage, xrdp nicht erreichbar.

iptables und whitelist

IPtables

Zurück
Oben