RE: Why is my 443 port blocked

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

 



> I made a script for my firewall, one of the rules is
> 
> $IPTABLES -A LAN-Internet -p tcp -s $NET_LSN -d 0/0
> --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT
> 
> $IPTABLES -A LAN-Internet -p tcp -s 0/0 --sport 443 -d
> $NET_LAN -m state --state ESTABLISHED -j ACCEPT
> 
> with my default policy DROP..
> 
> I can open http://www.yahoo.com, but how come I can't
> open the mail.yahoo.com???
> 
> In my log list, it says that the packet for port 443
> is blocked, and sometimes port 80 is blocked to???
> what's wrong with my firewall??? why isn't it
> stable...

Try this:

$ipt -A LAN-Internet -m state --state RELATED,ESTABLISHED \
  -j ACCEPT
$ipt -A LAN-Internet -m state --state NEW -s $NET_LAN \
  -m multiport -p tcp --dports 80,443 -j ACCEPT

Why not have the RELATED,ESTABLISHED rule in your FORWARD chain? This
rule will match most traffic so you want it to be one of the first rules
to be checked.


Gr,
Rob



[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