Help with Linux Firewall configuration!?
Hello. My situation is like this:
School network has around 60 computers and 5 Printers. Line comes to Lucent DSLPIPE modem and then to HP ProCurve 4000m switch (witch has configuration). One of cables connects to Linux Firewall PC (Swedish distribution) and then there is Windows domain controler with 2 network cards for two subnets(teachers and students).
No school buy new PC so firewall has new PC also. Problem is with configuration of linux. I use other distribution...
Old firewall info:
/etc/.config:
domain: school.example.se
eth0 IP: 10.2.44.253
eth0 NetMask: 29
eth0 Broadcast: 255.255.255.255
eth0 Discription: Uplink interface
eth1 IP: 10.2.44.62
eth1 NetMask: 26
eth0 Broadcast: 255.255.255.255
eth0 Discription: Protected network
Gateway: 10.2.44.254
NTPS: 10.1.1.2
/etc/config.data/inet.routes:
#!/bin/sh
echo "inet.routes"
export GATEWAY=214.11.120.202
echo " Initiating VLAN:s and routes ..."
# Load VLAN module
insmod 8021q 2>&1 | grep -v 'insmod: a module named 8021q already exist' >&2
# Setup VLAN and IP-addresses
# Uplink on public IP
vconfig add eth0 100
ip link set dev eth0.100 up
ifconfig eth0.100 214.11.120.201 netmask 255.255.255.252
# Add Teachers network
vconfig add eth0 101
ip link set dev eth0.101 up
ifconfig eth0.101 10.2.44.62 netmask 255.255.255.192
# Add Students network
vconfig add eth0 102
ip link set dev eth0.102 up
ifconfig eth0.102 10.2.44.126 netmask 255.255.255.192
ip addr add 10.2.44.190/26 brd + dev eth0.102
# Add EXTRA_NAT network
#vconfig add eth0 103
#ip link set dev eth0.103 up
#ifconfig eth0.103 10.2.44.190 netmask 255.255.255.192
ip route add default via $GATEWAY
ip addr add 10.2.44.254/24 dev eth0
and then on windows domain info:
eht0 IP: 10.2.44.10
eht0 Netmask: 255.255.255.192
eht0 Gateway: 10.2.44.62
eht0 DNS: 10.2.44.10
eht1 IP: 10.2.44.109
eht1 Netmask: 255.255.255.192
eht1 Gateway: 10.2.44.126
eht1 DNS: 10.2.44.109
HP ProCurve info:
IP: 10.2.44.252
Mask: 255.255.255.248
Gateway: 10.2.44.253
For me is little complicated to understand how to set this info on new PC. I wont use old distribution because its old and small.
So please help/suggest what/how configuration i should use and whats best distribution for this.
Thank you!
Linux is the best! :))) Always I used it but i am a programmer not a Network specialist :))) But i really need help with this.