FW: routing_based_on_port/services

George Njoku <[email protected]>
Newsgroups gmane.comp.security.linux
Message-ID <[email protected]>
Iptables -A FORWARD -i "External interface1" -o "internal interface1" -m
state --state ESTABLISHED,RELATED -j ACCEPT
Iptables -A FORWARD -p tcp -i  "internal interface1" -o "ext int1"
--source-port 25:110:21:20 -j ACCEPT


Iptables -A FORWARD -i "External interface2" -o "internal interface2" -m
state --state ESTABLISHED,RELATED -j ACCEPT
Iptables -A FORWARD -p tcp -i  "internal interface2" -o "ext int2"
--source-port 80:8080:443 -j ACCEPT


Note that FTP might be tricky bcos of FTP-data

Hope this helps

George Njoku
Systems Engineer
ECCF



-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Monday, October 03, 2005 5:42 AM
To: [email protected]
Subject: routing_based_on_port/services

Dear List!

I just want to ask you a question.I have a linux(Secure platform) gateway
server with 2 external ip address to the internet (one S/0 ADSl, second S/1
Point to Point) and one internal ip eth0 for my LAN. I need to split up the
outgoing traffic.HTTP/HTTPS want to route through the ADSL and the rest of
traffic (SMTP,POP3,FTP) through the Point to Point.Can i solve this with
Linux iptables or whatever else. Any suggestion help..

regards,

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.