Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] iptables: port forwarding
- Date: Mon, 14 Apr 2003 00:57:04 +0200
- From: David Santinoli <u235@example.com>
- Subject: Re: [tlug] iptables: port forwarding
- References: <Pine.SUN.3.95.1030413162958.17079B-100000@example.com> <20030413155456.47362.qmail@example.com>
- Organization: fastpath.it
- User-agent: Mutt/1.5.3i
On Mon, Apr 14, 2003 at 12:54:56AM +0900, Susumu ISHIZUKA wrote: > > I think your server replied with source port 22(ssh). > But it must be masqueraded to 80. > > So, try this: > iptables -t nat -A POSTROUTING -p tcp --sport 22 > -d 130.153.xxx.yyy > -j SNAT --to IP.Address.Of.The.Server:80 That's unnecessary AFAIK. What's needed, instead, is to accept packets heading for port 22 in the INPUT chain: /sbin/iptables -A INPUT -i eth0 -p tcp --dport 22 -s 130.153.xxx.yyy \ -j ACCEPT Cheers, David -- David Santinoli, Milano + <david@example.com> Independent Linux/Unix consultant + http://www.santinoli.com
- Follow-Ups:
- Re: [tlug] iptables: port forwarding
- From: Henri Servomaa
- References:
- [tlug] iptables: port forwarding
- From: Nguyen Vu Hung
- Re: [tlug] iptables: port forwarding
- From: Susumu ISHIZUKA
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Gentoo and kinput update
- Next by Date: RE: [tlug] kanji dictionary
- Previous by thread: Re: [tlug] iptables: port forwarding
- Next by thread: Re: [tlug] iptables: port forwarding
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links