Skip to contentSkip to conversation

8080 to 22

DISCUSSION Brent Clark 1 participant 2 messages Feb 20, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Brent Clark

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

Sorry Never Mind

Would help if I allow 8080 on my own personal fw.

Thanks anyway.

Kind Regards
Brent Clark