Re: Protecting multiple webservers

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

 



On Wed, Jan 19, 2005 at 12:37:06PM -0800, gui wrote:
> # allow outgoing connections from web servers.
> # added these lines so I can browse the web from the web servers 
> -A OUTPUT -d 0/0 -m state --state NEW -p tcp -m multiport --dport
> http,https -o eth0 -j ACCEPT
> 
> -A FORWARD -s 192.168.0.3 -d 0/0 -m state --state NEW -p tcp -m
> multiport --dport http,https -o eth0 -i eth1 -j ACCEPT
> -A FORWARD -s 192.168.0.2 -d 0/0 -m state --state NEW -p tcp -m
> multiport --dport http,https -o eth0 -i eth1 -j ACCEPT

uh--where are the "allow incoming connections to my web servers" lines?

  -A FORWARD -i eth0 -o eth1 -p tcp --syn -d 192.168.0.2 --dport 80 \
    -j ACCEPT

  -A FORWARD -i eth0 -o eth1 -p tcp --syn -d 192.168.0.3 --dport 80 \
    -j ACCEPT

make sure you also enabled IP forwarding:

  sysctl -w net.ipv4.ip_forward=1

-j

--
"Look, just give me some inner peace, or I'll mop the floor with ya!"
        --The Simpsons


[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