ich komm grad nicht klar:
DSL Router <> Debian eth0 -- eth1mit DHCP <>Windows PC
192.168.0.1 192.168.0.10 192.168.100.1 DHCP
Meine Schritte bisher:
/etc/interfaces
Code: Alles auswählen
auto lo eth0 eth1
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
# The secondary interface
iface eth1 inet static
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
Code: Alles auswählen
ddns-update-style none;
authoritative;
log-facility local7;
subnet 192.168.100.0 netmask 255.255.255.0
{
range 192.168.100.4 192.168.100.254;
option domain-name "localinter.net";
option routers 192.168.100.1;
option broadcast-address 192.168.100.255;
default-lease-time 86400;
max-lease-time 604800;
}
Code: Alles auswählen
INTERFACES="eth1"
Code: Alles auswählen
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
Code: Alles auswählen
x:~# route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Und wie ergänze ich die Firewallregeln damit ich nur noch jemanden auf eth1 über port 3128 ins lasse?
Ansonsten kann eth0 offen bleiben für updates von clamav etc.
Auch läuft schon ein Webserver auf Port 80 eth0