Hi all and thank you for your help in advance.
I’m trying to install a server with 3 nics, 2 for different subnets and 1 connected to internet.
eth0: 192.168.11.2/24
eth2: 131.107.2.3/24 (I know this is not a C class ip but the previous admin set it like that)
eth3: 200.69.219.x/28
eth0 is connected to a Draytek Vigor 2910 router with 2 ip addresses (192.168.11.1 and public ip 200.69.219.xxx) This public ip is used to stablish a VPN with other Draytek routers but with slightly different configuration:
Draytek 2: 192.168.10.1 + public ip
Draytek 3: 192.168.12.1 + public ip
Draytek 4: 192.168.13.1 + public ip
Behind those private ip address there is a server with 2 nics: one connected to the Draytek and one connected to the rest of the network (e.g. 192.168.12.2/192.168.2.2). So the server acts as the gateway for the local network and the Draytek router acts as the gateway for the server.
192.168.2.0/24 >> 192.168.2.2 >> 192.168.12.1 <=VPN=> 192.168.11.1 << 131.107.2.3 << 131.107.2.0/24
I need:
a. 131.107.2.0/24 network to get internet connection (Squid is installed and working fine)
b. allow any computer from the networks (192.168.0.0/24, 192.168.2.0/24, 192.168.3.0/24) behind the Draytek routers to access peers at 131.107.2.0/24 network and vice versa
c. allow access to the Drayteks (192.168.10.1, 192.168.11.1, 192.168.12.1, 192.168.13.1) from 131.107.2.0/24 network (for configuration and testing pourposes)
I have the following routing table
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
200.69.219.56 0.0.0.0 255.255.255.248 U 0 0 0 eth3
192.168.3.0 192.168.11.1 255.255.255.0 UG 0 0 0 eth0
192.168.2.0 192.168.11.1 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 192.168.11.1 255.255.255.0 UG 0 0 0 eth0
192.168.13.0 192.168.11.1 255.255.255.0 UG 0 0 0 eth0
192.168.12.0 192.168.11.1 255.255.255.0 UG 0 0 0 eth0
192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.10.0 192.168.11.1 255.255.255.0 UG 0 0 0 eth0
131.107.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 200.69.219.62 0.0.0.0 UG 0 0 0 eth3
And the /etc/sysconfig/SuSEfirewall2 file is
#grep -v ^# /etc/sysconfig/SuSEfirewall2 | grep -v '"]"]' | grep -v ^$
FW_DEV_EXT="any eth3"
FW_DEV_INT="eth0 eth1 eth2"
FW_DEV_DMZ=""
FW_ROUTE="yes"
FW_MASQUERADE="yes"
FW_MASQ_DEV="zone:ext"
FW_MASQ_NETS="0/0"
FW_NOMASQ_NETS=""
FW_PROTECT_FROM_INT="no"
FW_SERVICES_EXT_TCP="ftp 22 telnet 512:514 www domain https smtp pop3 imap imaps ntp 587"
FW_SERVICES_EXT_UDP="512:514 domain https ping-pong www"
FW_SERVICES_EXT_IP=""
FW_SERVICES_EXT_RPC=""
FW_CONFIGURATIONS_EXT="bind pure-ftpd sshd vsftpd"
FW_SERVICES_DMZ_TCP=""
FW_SERVICES_DMZ_UDP=""
FW_SERVICES_DMZ_IP=""
FW_SERVICES_DMZ_RPC=""
FW_CONFIGURATIONS_DMZ=""
FW_SERVICES_INT_TCP=""
FW_SERVICES_INT_UDP=""
FW_SERVICES_INT_IP=""
FW_SERVICES_INT_RPC=""
FW_CONFIGURATIONS_INT="bind dhcp-server"
FW_SERVICES_DROP_EXT=""
FW_SERVICES_DROP_DMZ=""
FW_SERVICES_DROP_INT=""
FW_SERVICES_REJECT_EXT=""
FW_SERVICES_REJECT_DMZ=""
FW_SERVICES_REJECT_INT=""
FW_SERVICES_ACCEPT_EXT=""
FW_SERVICES_ACCEPT_DMZ=""
FW_SERVICES_ACCEPT_INT=""
FW_SERVICES_ACCEPT_RELATED_EXT=""
FW_SERVICES_ACCEPT_RELATED_DMZ=""
FW_SERVICES_ACCEPT_RELATED_INT=""
FW_TRUSTED_NETS="131.107.2.0/24 192.168.11.0/24 192.168.12.0/24 192.168.2.0/24 192.168.10.0/24 192.168.13.0/24"
FW_ALLOW_INCOMING_HIGHPORTS_TCP=""
FW_ALLOW_INCOMING_HIGHPORTS_UDP=""
FW_FORWARD="0/0,131.107.2.0/24 131.107.2.0/24,0/0 192.168.12.0/24,131.107.2.0/24 131.107.2.0/24,192.168.12.0/24 131.107.2.0/24,192.168.2.0/24 192.168.2.0/24,131.107.2.0/24"
FW_FORWARD_REJECT=""
FW_FORWARD_DROP=""
FW_FORWARD_MASQ=""
FW_REDIRECT="131.107.2.0/24,0.0.0.0/0,tcp,80,3128"
FW_LOG_DROP_CRIT="yes"
FW_LOG_DROP_ALL="yes"
FW_LOG_ACCEPT_CRIT="yes"
FW_LOG_ACCEPT_ALL="yes"
FW_LOG_LIMIT=""
FW_LOG=""
FW_KERNEL_SECURITY="yes"
FW_STOP_KEEP_ROUTING_STATE="no"
FW_ALLOW_PING_FW="yes"
FW_ALLOW_PING_DMZ="no"
FW_ALLOW_PING_EXT="yes"
FW_ALLOW_FW_SOURCEQUENCH=""
FW_ALLOW_FW_BROADCAST_EXT="no"
FW_ALLOW_FW_BROADCAST_INT="no"
FW_ALLOW_FW_BROADCAST_DMZ="no"
FW_IGNORE_FW_BROADCAST_EXT="yes"
FW_IGNORE_FW_BROADCAST_INT="no"
FW_IGNORE_FW_BROADCAST_DMZ="no"
FW_ALLOW_CLASS_ROUTING=""
FW_CUSTOMRULES=""
FW_REJECT=""
FW_REJECT_INT="yes"
FW_HTB_TUNE_DEV=""
FW_IPv6=""
FW_IPv6_REJECT_OUTGOING=""
FW_IPSEC_TRUST="no"
FW_ZONES=""
FW_USE_IPTABLES_BATCH=""
FW_LOAD_MODULES="nf_conntrack_netbios_ns"
FW_FORWARD_ALWAYS_INOUT_DEV=""
FW_FORWARD_ALLOW_BRIDGING=""
I know I’m missing something but I don’t know what.
As always any help will be much appreciated,
Pancho