LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Giptables custom problem (https://www.linuxquestions.org/questions/linux-networking-3/giptables-custom-problem-114345/)

pazvant 11-10-2003 03:58 AM

Giptables custom problem
 
Hi , I am new in giptables.In my old configuration below ,I opened all ports for some clients, but in giptables when I add this rules to rc.giptables.custom , nothing changed here is the rules I added :

### Rules For Anil
iptables -A FORWARD -o eth0 -p tcp -s 192.168.0.2 --destination-port 0: -j ACCEPT
iptables -A FORWARD -o eth0 -p udp -s 192.168.0.2 --destination-port 0: -j ACCEPT

####OZGUR
iptables -A FORWARD -o eth0 -p udp -s 192.168.0.25 --destination-port 0: -j ACCEPT
iptables -A FORWARD -o eth0 -p tcp -s 192.168.0.25 --destination-port 0: -j ACCEPT

iptables -A INPUT -i eth0 -p tcp --destination-port 153 -j DROP
iptables -A INPUT -i eth0 -p tcp --destination-port 707 -j DROP
iptables -A OUTPUT -o eth0 -p tcp --destination-port 153 -j DROP
iptables -A OUTPUT -o eth0 -p tcp --destination-port 707 -j DROP

How this rules effect to gip tables?? My giptables confuguration is default-gateway selectionn...

Thanks


All times are GMT -5. The time now is 08:24 PM.