Re: Problems with a forward rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 2012-05-11 17:04, C. L. Martinez wrote:

>Hi all,
>
> I have setup the following rules in a centos6 gateway:
>[ugly iptables -L]

*Use* iptables-save and provide a *full* ruleset.

>All works ok, except when I try to restrict one host to go out via
>external interface. My problem is with the following rule:
>
>   0     0 ACCEPT     all  --  *      *       172.24.50.3
>0.0.0.0/0           state NEW
>
>If I try to restrict destination, doesn't works. For example using this rule:
>
>iptables -A FORWARD -s 172.24.50.3 -d 1.1.1.0/24 -m state --state NEW -j ACCEPT
>
>only works if I do:
>
> iptables -A FORWARD -s 172.24.50.3 -m state --state NEW -j ACCEPT
>
>then, what am I doing wrong??
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux