Portál AbcLinuxu, 10. května 2025 11:21
iptables -t nat -I PREROUTING --src 0/0 --dst 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to-ports 8022Problem je, ze mi toto reseni nefunguje, po pristupu na http://mujserver/ prohlizec hlasi "unable to connect".
iptables -t nat -I OUTPUT --src 0/0 --dst 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to-ports 8022
iptables -t nat -A PREROUTING -d 1953.5.3.4 --dport 80 -j DNAT --to-destination 127.0.0.1:8022by mohlo stacit..
$ sudo iptables -t nat -A PREROUTING --dst 193.5.3.4 --dport 80 -j DNAT --to-destination 127.0.0.1:8022 iptables v1.4.15: unknown option "--dport" Try `iptables -h' or 'iptables --help' for more information.
# iptables -t nat -A PREROUTING --dst 192.168.57.128 --destination-port 443 -j DNAT --to-destination 127.0.0.1:8022 iptables v1.4.4: unknown option `--destination-port' Try `iptables -h' or 'iptables --help' for more information.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.