Mailinglist Archive: opensuse (2886 mails)

< Previous Next >
SSH forwarding w/ iptables
I'm trying to forward port 6969 on my firewall to port 22 of an internal
machine. I've tried the following:

$IPTABLES -t nat -A PREROUTING -p tcp -d <external ip> --dport 6969 -j
DNAT --to 192.168.1.1:22

I have also tried:

$IPTABLES -t nat -A PREROUTING -p tcp -d <external ip> --dport 6969 -j
DNAT --to-destination 192.168.1.1:22

and finally I tried:

$IPTABLES -t nat -A PREROUTING -p tcp -d <external ip> --dport 6969 -j
DNAT --to-dest 192.168.1.1:22

I have had no luck with any. Anybody have suggestions?

Adam


< Previous Next >
Follow Ups
References