Hello@all,
i have a problem with the configuration of my firewallscript.
My system: Suse 9.3 base installation on epia with 2 nics.
on nic (eth0) for the internal connections (192.168.0.0 net)
the other as dialup dsl connection (over ppp0).
now i created the following rules for the startup:
#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -P INPUT DROP
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i ppp0 -m state --state ESTABLISHED -j ACCEPT
#SSH
iptables -A INPUT -i ppp0 -p TCP --dport 22 -j ACCEPT
#VPN
#iptables -A INPUT -i eth2 -p UDP --dport 1194 -j ACCEPT
#iptables -A INPUT -i tun0 -j ACCEPT
#iptables -A INPUT -i tap0 -j ACCEPT
#ClientPorts
#iptables -A INPUT -i eth1 -p TCP -m multiport --dports 4661,4662,4665 -j
ACCEPT
#iptables -A INPUT -i eth1 -p UDP -m multiport --dports 4661,4662,4665 -j
ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
all connections from the internal network to gatewayserver which are online
before running the script are doing. but if i run the script new connections
are rejected.
internet-connection works too. but a new ssh connetion to the server from
the internal network don´t work anymore.
i have no idea wath is wrong with the script.
could you help me

.
thank you.
regards
Marcus König