LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 02-28-2004, 06:19 PM   #1
IMNOboist
Member
 
Registered: Nov 2003
Location: Seattle
Distribution: OpenBSD, Ubuntu
Posts: 60

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 (10.11.12.13) and dc0 (192.168.1.2).

I have two web servers behind the firewall, www.foo.com (192.168.1.3) and www.bar.com (192.168.1.4).

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

Thanks!

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

Rep: Reputation: 69
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
chort
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: 76
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:00 AM.

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