Hello , i tried to set up an IPTables Router for my
Webserver. All hosts have has an official IP Adress. The eth0 of the Router is
in a seperate Net.
The config on the Router is like this
:
---------<Router>----------------------<WEBServer>
eth0
eth1
eth0
# Allow ssh ( 0.0.0.0/0 is replaced by my own
client IP )
iptables -P INCOMING DROP
iptables -A INCOMING -s 0.0.0.0/0 -p tcp --dport 22
-j ACCEPT
iptables -P FORWARD DROP
iptables -A FORWARD -s 0.0.0.0/0 -p tcp --dport 80
-j ACCEPT
iptables -P OUTPUT ALLOW
Will this work ? O.K. Iam a Newbie but i will learn
!
MfG Thomas
|