Re[2]: Help!!!

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

 



Hello /dev/rob0,

ok.
      I modify the rule
>> iptables -I FORWARD -i eth1 -o eth0 -m state
>> --state ESTABLISHED,RELATED -j ACCEPT      
      in
>> iptables -I FORWARD -i eth1 -o eth0 -d 192.168.50.0/24 -m state
>> --state ESTABLISHED,RELATED -j ACCEPT      
     and this don't work...

[23/Jun/2005 16:00:34] "Network" action = 'denied',
descr = 'Unopened port', proto = 6, laddr = 192.168.50.101,
raddr = 217.132.77.214, lport = 2276, rport = 4662,
direc = 'in', ruleId = 0, proc = 'N/A'
     
     Q. why rule don't work ?
     Q. why this packages with flag ESTABLISHED come to me?





Thursday, June 23, 2005, 3:14:24 PM, you wrote:

dr> On Thursday 23 June 2005 06:50, radu wrote:
>> why I'm receiving on my PC  packages  with external ip on
>> 4690,4544,4581.. ports???

dr> That would be me. I was trying to lure you into posting something on
dr> this list. ;)

>>   Internet -> linux box -> My PC(192.168.50.101)
>>
>>   linux box
>>   eth0 local 192.168.50.0/24
>>   eth1 Internet
>>
>>   my iptables config:
>>
>> iptables -P FORWARD DROP

dr> good

>> iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 4662 -j DNAT
>> --to 192.168.50.101

dr> 4662/tcp packet arriving at the external interface should have their
dr> destination changed to Radu's computer ...

>> iptables -I FORWARD  -d 192.168.50.101 -p tcp 
>> --dport 4662 -j ACCEPT

dr> ... and those packets should be accepted.

>> iptables -I FORWARD -i eth1 -o eth0 -m state 
>> --state ESTABLISHED,RELATED -j ACCEPT

dr> Any replies to established or related connections arriving at the 
dr> external interface, destined to the internal interface, should be 
dr> accepted.

dr> This is surely the rule letting those in. Check the connection tracking
dr> table when you see them come in.



-- 
Best regards,
 radu                            mailto:radu@xxxxxxxxxx



[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