История изменений
Исправление
fero,
(текущая версия)
:
# iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.44:8082
# iptables -A FORWARD --dst 192.168.1.44 --dport 8082 -j ACCEPT
iptables v1.4.0rc1: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.
# iptables -A FORWARD -p tcp -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A FORWARD -p udp -m state --state ESTABLISHED,RELATED
Ругается. И почему в 1й строке --dport 80, можно же 8082 прописать? Он не в веб-интерфейс роутера долбится?
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
udp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
udp -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain BRUTE (0 references)
target prot opt source destination
Chain FORWARD2 (0 references)
target prot opt source destination
Chain H_ACCESS (0 references)
target prot opt source destination
Chain MACS (0 references)
target prot opt source destination
Chain MINIUPNPD (0 references)
target prot opt source destination
Chain SECURITY (0 references)
target prot opt source destination
Chain USER_DNAT (0 references)
target prot opt source destination
Chain USER_RULES (0 references)
target prot opt source destination
Chain WAN_FIREWALL (0 references)
target prot opt source destination
Chain logaccept (0 references)
target prot opt source destination
Chain logdrop (0 references)
target prot opt source destination
Исправление
fero,
:
# iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.44:8082
# iptables -A FORWARD --dst 192.168.1.44 --dport 8082 -j ACCEPT
iptables v1.4.0rc1: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.
# iptables -A FORWARD -p tcp -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A FORWARD -p udp -m state --state ESTABLISHED,RELATED
Ругается. И почему в 1й строке --dport 80, можно же 8082 прописать? Он не в веб-интерфейс роутера долбится?
Исходная версия
fero,
:
# iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.44:8082
# iptables -A FORWARD --dst 192.168.1.44 --dport 8082 -j ACCEPT
iptables v1.4.0rc1: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.
# iptables -A FORWARD -p tcp -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A FORWARD -p udp -m state --state ESTABLISHED,RELATED
Ругается. И почему в 1й строке --dport 80, можно же 8082 прописать? Иначе он в веб-интерфейс роутера долбиться