strange x server problem with my iptables def.
Hello pals!
Here is my strange problem....
I've recently configured my fedora 2 box to work as a gateway to my "treacherous" father's windows xp box. Now I have a really messy thing happening. When I try to "startx" the Xserver, with the iptables definition script I've made activated, it crashes , doesn't enter, and, if I deactivate the script, it runs normaly, whitout problems. Please can anyone say what is wrong with it, here it is (I use eth0 for acessing the internet and eth1 for the LAN):
#!/bin/sh
PATH=/sbin:$PATH
iptables -X
iptables -F
iptables -t nat -F
iptables -P FORWARD ACCEPT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -A INPUT -j LOG -s 192.168.0.0/24 -i eth1
iptables -A INPUT -j LOG -s localhost/8 -i lo
iptables -A INPUT -j DROP -s 192.168.0.0/24 -i eth1
iptables -A INPUT -j DROP -s localhost/8 -i lo
iptables -A INPUT -j ACCEPT -i eth1
iptables -A INPUT -j ACCEPT -i lo
iptables -A INPUT -j ACCEPT -p tcp --dport 22
iptables -A INPUT -j ACCEPT -p tcp --dport 6000
iptables -A INPUT -j ACCEPT -p tcp --dport 1024: ! --syn
iptables -A INPUT -j ACCEPT -p udp -s 213.228.128.6 --sport 53 --dport 1024:
iptables -A INPUT -j ACCEPT -p udp -s 213.228.128.5 --sport 53 --dport 1024:
iptables -A INPUT -j ACCEPT -p icmp --icmp-type 0
iptables -A INPUT -j ACCEPT -p icmp --icmp-type 3
iptables -A INPUT -j LOG
iptables -A INPUT -j DROP
iptables -t nat -A POSTROUTING -j MASQUERADE -s 192.168.0.0/24 -d ! 192.168.0.0/24
|