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] Firewalls
- Date: Wed, 26 Mar 2008 09:10:28 +0100
- From: Sigurd Urdahl <sigurdur@example.com>
- Subject: Re: [tlug] Firewalls
- References: <47E96C80.2090507@gmail.com>
- User-agent: Thunderbird 2.0.0.12 (X11/20080227)
Phillip Tribble wrote:Greetings!
I want to be able to forward port 999 on my server to port 22 on my Desktop so I can view my desktop computer remotely at work (If ssh can work, I will test VNC later)
I tried the following and my nmap says the port is closed.
#iptables -P FORWARD ACCEPT
#iptables -t nat -A POSTROUTING -o lo -j MASQUERADE
#iptables -t nat -A PREROUTING -p tcp -d rusher.webhop.org --dport 999 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.0.127:22
Phil,
I believe you also need to ACCEPT the incoming traffic by adding something like this
iptables -A INPUT -p tcp -d rusher.webhop.org --dport 999 --state NEW,ESTABLISHED,RELATED -j ACCEPT
kind regards, -sig
-- Sigurd Urdahl Linux, goofing, cooking, making fire, computer security, having a beer. Give me good music.
- References:
- [tlug] Firewalls
- From: Phillip Tribble
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] CAPTCHA on keitai
- Next by Date: Re: [tlug] Abiword and Japanese
- Previous by thread: [tlug] Firewalls
- Next by thread: [tlug] man syslogd(8) and have a laugh
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links