Skip to contentSkip to conversation

choose interface based on port

DISCUSSION Security Support Center 3 participants 3 messages Dec 19, 2004

lore
Share & tools
lore
#0 lore raw

Hello All,

I'm having some problems on creating something that I thought, would not be so dificult.

I have a firewall that holds 4 interfaces, and 2 of them are links to the internet.

I want use link 1 for navigation (80 port) and link 2 for all the rest. But I can't get it done.

I already tried lots of rule types, search internet, googled, etc but got nothing.

Can anybody give me a light on this

Tank you all in advance...

Alberto

#1 lore raw
Quoted 15 lines · Security Support Center

Hello All,

I'm having some problems on creating something that I thought, would not be so dificult.

I have a firewall that holds 4 interfaces, and 2 of them are links to the internet.

I want use link 1 for navigation (80 port) and link 2 for all the rest. But I can't get it done.

I already tried lots of rule types, search internet, googled, etc but got nothing.

Quoted 7 lines

Can anybody give me a light on this

Tank you all in advance...

Alberto

Hi, Alberto. I'm afraid I don't have time to look up the details but I think you will be able to do what you want to do with iproute2 and packet marking. The details will be in a file named ip-cref.ps in the rules section. On my RedHat 9.0 distribution it is /usr/share/doc/iproute-2.4.7/ip-cref.ps. You can also find a brief slide show on using it with iptables and *swan in the training section of the ISCS network security management web page at
http://iscs.sourceforge.net

Good luck - John

Signature · 4 lines
John A. Sullivan III
Open Source Development Corporation
Financially sustainable open source development
http://www.opensourcedevel.com
#2 lore raw
In reply to Security Support Center

* Security Support Center <[email protected]> 19. Dec 04:

Quoted 1 line

Hello All,

Hi,

Quoted 5 lines

I have a firewall that holds 4 interfaces, and 2 of them are links to the internet.

I want use link 1 for navigation (80 port) and link 2 for all the rest. But I can't get it done.

You have to combine netfilter and ip. Your problem is explained here:
<URL:http://www.lartc.org/howto/lartc.netfilter.html>

HTH,
regards, Frank.

Signature · 1 line
Sigmentation fault