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

Setup a firewall/gateway/server



Hi,

I want to setup my headless pc box on which run a Debian Squeeze system
for firewall/gateway/server for my home LAN.

What I want is to protect my LAN and to get a web server that is
reachable from the Internet and from LAN too.

I want to use Shorewall as firewall manager and apache2 as a webserver.

So far I have setup NIC's:
auto eth0
iface eth0 inet dhcp

iface eth1 inet static
    address 192.168.10.1
    netmask 255.255.255.0
    network 192.168.10.0
    broadcast 192.168.10.255
    gateway 192.168.10.1

a dhcp server:
/etc/default/isc-dhcp-server
INTERFACES="eth1"

/etc/dhcp/dhcpd.conf

option domain-name "cspl.me";
option domain-name-servers 91.102.231.242, 91.102.231.241;

subnet 192.168.10.0 netmask 255.255.255.0 {
    interface eth1;
    range 192.168.10.90 192.168.10.99;
    option routers 192.168.10.1;
    option subnet-mask 255.255.255.0;
}

a ddclient that works,

IP Forwarding:
cat /proc/sys/net/ipv4/ip_forward
1

but this setup doesn't work yet. Why?

-- 
Regards from Pal


Reply to: