Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 02-28-2004, 06:19 PM   #1
Registered: Nov 2003
Location: Northern Utah
Distribution: OpenBSD, Ubuntu, Linux Mint, Knoppix
Posts: 57

Rep: Reputation: 16
Setting up multiple web servers behind Packet Filter (PF)

I have an OpenBSD 3.4 machine running Packet Filter (PF). It has two network cards, rl0 ( and dc0 (

I have two web servers behind the firewall, ( and (

How can I setup PF's rules to send the traffic to the correct web server?


Last edited by IMNOboist; 02-28-2004 at 06:21 PM.
Old 02-28-2004, 06:40 PM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 65
Not a Linux - Security question. Probably more appropriate in the *BSD Forum.

Thread moved to *BSD - Forum
Old 02-29-2004, 04:34 AM   #3
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You need two external IPs, or you need to setup a port other than 80 on the firewall for one of them.

Do you have more 10.11.12.* addresses that you could assign to the external interface of the firewall?

Your last option would be to run the firewall in "bridged" mode, but that would require a router in front of it to send the packets to the right place. The router would be directing traffic to each webserver, the OpenBSD box would just filter it.

If you provide more details, we can explain exactly how to set it up.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
Simple question, setting up multiple game servers lexington Linux - Newbie 3 05-24-2004 04:11 PM
Setting up multiple mail servers on one server tumana Linux - Newbie 5 03-12-2004 07:38 PM
IP Packet filter doraiashok Programming 2 02-26-2004 11:21 AM
Setting up a NAT/ Packet filter setup on ADSL router pcwulf Linux - Networking 1 11-28-2003 01:57 PM

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration