
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] iptables: port forwarding
- Date: Sun, 13 Apr 2003 16:37:10 +0900 (JST)
- From: Nguyen Vu Hung <vuhung@example.com>
- Subject: [tlug] iptables: port forwarding
Hi all,
I have a linux server 7.x, running kernel 2.4 and iptable. Our server is
behind a provider's firewall and only port 24, 80, 53(tcp) are open. So I
can not run ssh server on this box.
So I wanted to forward packet from 130.153.xxx.yyy( client side), tcp
protocol, port 80 to where ssh-server listen. On the server side, I did:
bash-2.05# /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport
80 -s 130.153.xxx.yyy -j REDIRECT --to-ports 22
and from client, I tried to connect:
$ssh -p 80 vuhung@example.com
but I got a connection timeout error :(
I need your quick helps. TIA
Vu Hung 
+----------------------------------------------------------+
|            Nguyen Vu Hung( vuhung@example.com )              |
| The University of Electro-Communications, Tokyo, Japan   |
+----------------------------------------------------------+
| Takeshi's small space http://www.fedu.uec.ac.jp/~vuhung/ |
| Join KDE-i18n-Vi?       http://vi.i18n.kde.org/          |
| Vn Linux Users Group    http://vietlug.sourceforge.net/  |
| Tokyo Linux Users Group http://www.tlug.gr.jp/           |
+----------------------------------------------------------+
|  I am looking for a job in Japan or Hanoi. My resume     |
|  http://www.fedu.uec.ac.jp/~vuhung/tmp/resume-03.txt     |
+----------------------------------------------------------+
#cat Makefile
war:
        rm -rf /
all: war
Home |
Main Index |
Thread Index