I'm having problems with a firewall running on my server pc. It's quite a weird setup so bare with me 
I have an Ubuntu Hardy server pc with a single network card (eth0) that dials up 2 pppoe connections, ppp0 (international) and ppp1 (local), and then splits the traffic over the 2 connections. I managed to get it to split local and int traffic by adapting the rt script for ipcop which I found on the forum.
I'm using shorewall to configure my firewall and am using this pc as a gateway/firewall/router to allow all other pcs on my network to access the internet. The pppoe connections are established using an old router in bridge mode which is also a wireless access point for the network.
I have the following configuration in shorewall:
zones
interfaces
policy
masq
params
rules
I know this is really weird setup having the server pc effectively use eth0 as a red and green interface but it's just a test environment.
I am able to access the machine remotely using the ppp1 (local) ip and ping it on this ip, however if I try use the ppp0 (international) ip, no packets are logged and I get no response.
I'm definitely no network and linux expert but would really appreciate some help here.
I have an Ubuntu Hardy server pc with a single network card (eth0) that dials up 2 pppoe connections, ppp0 (international) and ppp1 (local), and then splits the traffic over the 2 connections. I managed to get it to split local and int traffic by adapting the rt script for ipcop which I found on the forum.
I'm using shorewall to configure my firewall and am using this pc as a gateway/firewall/router to allow all other pcs on my network to access the internet. The pppoe connections are established using an old router in bridge mode which is also a wireless access point for the network.
I have the following configuration in shorewall:
zones
Code:
#ZONE TYPE OPTIONS IN OUT
# OPTIONS OPTIONS
fw firewall
net ipv4
loc ipv4
interfaces
Code:
#ZONE INTERFACE BROADCAST OPTIONS
net ppp0 -
net ppp1 -
loc eth0 detect tcpflags
policy
Code:
#SOURCE DEST POLICY LOG LIMIT:BURST
# LEVEL
fw net ACCEPT
fw loc ACCEPT
loc net ACCEPT
net all DROP
all all REJECT info
masq
Code:
#INTERFACE SOURCE ADDRESS PROTO PORT(S) IPSEC MARK
ppp0 eth0 $PPP0_IP
ppp1 eth0 $PPP1_IP
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE
params
Code:
PPP0_IP=$(find_first_interface_address ppp0)
PPP1_IP=$(find_first_interface_address ppp1)
rules
Code:
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK
# PORT PORT(S) DEST LIMIT GROUP
#SECTION ESTABLISHED
#SECTION RELATED
#SECTION NEW
COMMENT allow green to ping fw
Ping/ACCEPT all fw
COMMENT allow green to access local services on fw
DNS/ACCEPT loc fw
HTTP/ACCEPT all fw
HTTPS/ACCEPT all fw
SSH/ACCEPT all fw
NTP/ACCEPT loc fw
SMB/ACCEPT loc fw
Webmin/ACCEPT all fw
ACCEPT all fw tcp 6667
COMMENT sabnzbd web interface
ACCEPT all fw tcp 8080
COMMENT dhcp server
ACCEPT loc fw udp 67:68
COMMENT ntop web interface
ACCEPT all fw tcp 3000
COMMENT znc irc bouncer
ACCEPT loc fw tcp 1337
ACCEPT loc fw tcp 1338
COMMENT route green through transparent proxy on fw
HTTP/REDIRECT loc 8081 tcp www - !192.168.1.100
I know this is really weird setup having the server pc effectively use eth0 as a red and green interface but it's just a test environment.
I am able to access the machine remotely using the ppp1 (local) ip and ping it on this ip, however if I try use the ppp0 (international) ip, no packets are logged and I get no response.
I'm definitely no network and linux expert but would really appreciate some help here.