Re: Problems with a forward rule

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

 



Alright,
Judging your ruleset the only relevant lines for your host 172.24.50.3 would be:

:FORWARD DROP [2:80]
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 172.24.50.3/32 -m state --state NEW -j ACCEPT
-A FORWARD -j LOG --log-prefix "IPT FORWARD packet died: "

And you said that restricting destination does not work. Your rule:
iptables -A FORWARD -s 172.24.50.3 -d 1.1.1.0/24 -m state --state NEW -j ACCEPT

You say it does not work. If that is the case, your packets are logged and dropped.
Could you paste the log entries for your host 172.24.50.3?

On 05/14/2012 07:45 AM, C. L. Martinez wrote:
On Sat, May 12, 2012 at 10:53 PM, Tom van Leeuwen
<tom.van.leeuwen@xxxxxxxxxxxxx>  wrote:
Indeed do iptables-save for the complete ruleset and tell us what you want
and expect.


On 12-5-2012 17:47, Jan Engelhardt wrote:
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.

Ok, here they are. I want to allow connections from host 172.24.50.3
to one specific network only.
--
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