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][tlug] Firewall
- Date: Tue, 25 Mar 2008 09:22:01 -0600
- From: Phillip Tribble <rusher@example.com>
- Subject: [tlug] Firewall
- User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
I am trying to connect to my server at home and have the VNC port forwarded to my DESKTOP. I was unable to view my desktops VNC session from Work. I tested out port forwarding with httpd and it worked fine. VNC is not working. Does anyone have any ideas? All the port forwarding in this script has been commented out since I am not currently using it. Your assistance is greatly appreciated!
#!/bin/bash
/etc/rc.d/iptables stop
/etc/rc.d/iptables start
#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 139 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.0.127:139
#iptables -t nat -A PREROUTING -p tcp -d rusher.webhop.org --dport 5801 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.0.127:5801
#iptables -t nat -A PREROUTING -p tcp -d rusher.webhop.org --dport 5801 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.0.127:5800
#iptables -t nat -A PREROUTING -p tcp -d rusher.webhop.org --dport 6001 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.0.127:6001
iptables -N interfaces
iptables -P INPUT DROP
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 143 -j ACCEPT
#iptables -A INPUT -p tcp --dport 5000:7000 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j ACCEPT
iptables -P OUTPUT ACCEPT
sleep 1
iptables-save
iptables -L -t nat
nmap -F rusher.webhop.org
- Follow-Ups:
- Re: [tlug] Firewall
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Why Vista Sucks (was: linux: it's becoming ubiquitous)
- Next by Date: Re: [tlug] Re: Why Vista Sucks (was: linux: it's becoming ubiquitous)
- Previous by thread: Re: [tlug] Why Vista Sucks (was: linux: it's becoming ubiquitous)
- Next by thread: Re: [tlug] Firewall
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links