8080 to 22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

I am in need of connecting to a machine with SSH, but via port 8080.

I tried the following

$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j DNAT --to 10.0.0.10:22
$IPT -t filter -A FORWARD -i eth0 -p tcp --dport 8080 -d 10.0.0.10 -j ACCEPT

$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j DNAT --to 10.0.0.10:22
$IPT -t filter -A FORWARD -i eth0 -p tcp --dport 22 -d 10.0.0.10 -j ACCEPT

And still I cant connect.
I do have another machine that I have to connect to, but this on the standard port 22.

If anyone could assist, I would be most grateful.

Kind Regards
Brent Clark


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux