i have an ipmasq script which works pretty fine but what bugs me is that, that it rejects packages from samba, ssh and apache port. So my questions is how can i enable those ports ? Btw.this is my rc.ipmasq script
Quote:
#!/bin/sh
IPTABLES=/sbin/iptables
#All The lines below are NAT routing
# flush any old rules
$IPTABLES -F
$IPTABLES -F -t nat
$IPTABLES -t mangle -F
# turn on NAT (IP masquerading for outgoing packets)
$IPTABLES -A POSTROUTING -t nat -o ppp0 -j MASQUERADE
# enable IP forwarding (of incoming packets)
echo 1 > /proc/sys/net/ipv4/ip_forward
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
$IPTABLES -P INPUT DROP #only if the first two are succesful
$IPTABLES -A FORWARD -i ppp0 -o ppp0 -j REJECT
|
big thanx in advance!