Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Firewall



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



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links