iptables problem

Discussion in 'HyperWRT Firmware' started by iaforek, May 17, 2006.

  1. iaforek

    iaforek Network Guru Member

    Hi.

    I'm trying to block all udp traffic form/to one of my computer in my local network. Also I want to block all tcp traffic on ports 6882 and above from this particular computer (192.168.1.141).
    This are some variations I've made in iptables:

    iptables -t filter -A INPUT -s 192.168.1.141 -p udp -j DROP
    iptables -t filter -A INPUT -s 192.168.1.141 -p tcp --sport 6882:65535 -j DROP
    iptables -t filter -A OUTPUT -s 192.168.1.141 -p tcp --dport 6882:65535 -j DROP
    iptables -t filter -A OUTPUT -s 192.168.1.141 -p tcp --sport 6882:65535 -j DROP
    iptables -t filter -A OUTPUT -s 192.168.1.141 -p udp -j DROP

    Neither of them works;(
    How can I block unwanted traffic?
     
  2. iaforek

    iaforek Network Guru Member

    One more thing:

    I use firmware v4.70.6 - HyperWRT 2.1b1 - Thibor
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice