Re: problems with iptables redirect of ssh
- From: Luca Ferrari <fluca1978@xxxxxxxxxxx>
- Date: Mon, 28 Jan 2008 16:39:58 +0100
On Monday 28 January 2008 Ruben Laban's cat, walking on the keyboard, wrote:
It most likely works, just not to/from localhost. The PREROUTING chain is
*not* used for such local traffic. If you'd test from another box in your
lan, it will most likely show you the desired results.
Yeah, thanks you were right! It does not work for localhost. Now, more
difficult: if I'd like to forward ssh to another host, the following line
should work
$IPTABLES -t nat -I PREROUTING -p tcp --dport 2222 -j DNAT --to
192.168.1.4:22
but when I try to connect from another host to the port 2222 I get blocked
(i.e., the connection waits) and nothing happens.....Any suggestion?
Thanks,
Luca
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: problems with iptables redirect of ssh
- From: Ruben Laban
- Re: problems with iptables redirect of ssh
- References:
- problems with iptables redirect of ssh
- From: Luca Ferrari
- Re: problems with iptables redirect of ssh
- From: Ruben Laban
- problems with iptables redirect of ssh
- Prev by Date: Re: Any one can help. i can not run live CD at tx1316
- Next by Date: Realtek ALC268 audio issue on Lenovo F31A
- Previous by thread: Re: problems with iptables redirect of ssh
- Next by thread: Re: problems with iptables redirect of ssh
- Index(es):
Relevant Pages
|