Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» DHCP and DNS» Using DNS in PFSense to split traffic based on host request
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: Using DNS in PFSense to split traffic based on host request  (Read 1426 times)
0 Members and 1 Guest are viewing this topic.
shad061
Newbie
*
Offline Offline

Posts: 5


View Profile
« on: January 09, 2012, 10:33:33 pm »

I have tried to research this topic but just get confused by the plethora of information available on DNS in pf. I have two web servers, each with different sites (mainly some of my projects run on IIS and some only on linux) behind a single public IP and NAT configured with pfsense. I have no problems with simple port forwards in pf but what I would like to try and figure out is how to host 2 different web servers on the same IP and split traffic with pf based on a list of hosts on each server. Please don't respond with "run one on a different port". Can anyone give me heads up on where to start with this?
Logged
marcelloc
Hero Member
*****
Offline Offline

Posts: 8395



View Profile
« Reply #1 on: January 09, 2012, 10:40:14 pm »

You need a reverse proxy for that.

Install varnish package. It's really fast and will also reduce yours servers load.
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
shad061
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #2 on: January 09, 2012, 11:01:00 pm »

Thank you. I'm trying to figure that out now but wow. Varnish looks more complicated than DNS. All the documentation on it refers to config files no gui. I want point click! LOL

Well I am going to keep trying this but if anyone has any easier ways I'l love to hear them.

Thank you.
Logged
shad061
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #3 on: January 09, 2012, 11:04:37 pm »

Can port under "backends" be a list or range? i.e. "43,80,1000" or "40-50"
Logged
marcelloc
Hero Member
*****
Offline Offline

Posts: 8395



View Profile
« Reply #4 on: January 09, 2012, 11:12:14 pm »

I don't think so.

you can publish only port 80 from varnish and then forward based on hostname or url to local servers on  any port.

varnish does not work with ssl yet.

If you need ssl balance, you can use pfsense load balance or haproxy package. Both balance based on ip not in hostname
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
marcelloc
Hero Member
*****
Offline Offline

Posts: 8395



View Profile
« Reply #5 on: January 09, 2012, 11:14:35 pm »

To do not get off topic, you can ask for varnish help on this thread

http://forum.pfsense.org/index.php/topic,38271.0.html
Logged

Have I helped you? Donations are always welcome! Grin

Te ajudei? Doações são sempre bem vindas! Grin
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.025 seconds with 20 queries.