dale10
12-03-2001, 11:45 PM
I was playing with iptables and set up this simple firewall and now i can't start up gnome. it just halts after the nvidia sign. i can still start up gnome with root though. once i flush the rules i can start up gnome with my normal user account. weird. here's my firewall file. any ideas as to what's wrong?
#!/bin/bash
# Load required modules, checks if already loaded, if not load module
# Test if ip_tables module is loaded, not likely at boot time
if [ -z "`lsmod|grep ip_tables`" ];
then
modprobe ip_tables
fi
# Test if iptable_conntrack module is loaded, not likely at boot time
if [ -z "`lsmod|grep ip_conntrack`" ];
then
modprobe ip_conntrack
fi
# Test if iptable_nat module is loaded, not likely at boot time
if [ -z "`lsmod|grep iptable_nat`" ];
then
modprobe iptable_nat
fi
# Test if ipt_MASQUERADE module is loaded, not likely at boot time
if [ -z "`lsmod|grep ipt_MASQUERADE`" ];
then
modprobe ipt_MASQUERADE
fi
# Test if iptable_filter is loaded, not likely at boot time
if [ -z "`lsmod|grep iptable_filter`" ];
then
modprobe iptable_filter
fi
# Then flush all rules
iptables -F
iptables -t nat -F
iptables -A INPUT -p tcp --syn -s 192.168.0.1/24 --destination-port telnet -j ACCEPT
iptables -A INPUT -p tcp --syn -s 192.168.0.100/24 --destination-port 80 -j ACCEPT
iptables -A INPUT -p tcp --syn -j DROP
#!/bin/bash
# Load required modules, checks if already loaded, if not load module
# Test if ip_tables module is loaded, not likely at boot time
if [ -z "`lsmod|grep ip_tables`" ];
then
modprobe ip_tables
fi
# Test if iptable_conntrack module is loaded, not likely at boot time
if [ -z "`lsmod|grep ip_conntrack`" ];
then
modprobe ip_conntrack
fi
# Test if iptable_nat module is loaded, not likely at boot time
if [ -z "`lsmod|grep iptable_nat`" ];
then
modprobe iptable_nat
fi
# Test if ipt_MASQUERADE module is loaded, not likely at boot time
if [ -z "`lsmod|grep ipt_MASQUERADE`" ];
then
modprobe ipt_MASQUERADE
fi
# Test if iptable_filter is loaded, not likely at boot time
if [ -z "`lsmod|grep iptable_filter`" ];
then
modprobe iptable_filter
fi
# Then flush all rules
iptables -F
iptables -t nat -F
iptables -A INPUT -p tcp --syn -s 192.168.0.1/24 --destination-port telnet -j ACCEPT
iptables -A INPUT -p tcp --syn -s 192.168.0.100/24 --destination-port 80 -j ACCEPT
iptables -A INPUT -p tcp --syn -j DROP