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:
1 Hour
1 Day
1 Week
1 Month
Forever
Home
Help
Search
Login
Register
Pages: [
1
]
Go Down
« previous
next »
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
Posts: 5
Using DNS in PFSense to split traffic based on host request
«
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
Posts: 8395
Re: Using DNS in PFSense to split traffic based on host request
«
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!
Te ajudei?
Doações são sempre bem vindas!
shad061
Newbie
Offline
Posts: 5
Re: Using DNS in PFSense to split traffic based on host request
«
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
Posts: 5
Re: Using DNS in PFSense to split traffic based on host request
«
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
Posts: 8395
Re: Using DNS in PFSense to split traffic based on host request
«
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!
Te ajudei?
Doações são sempre bem vindas!
marcelloc
Hero Member
Offline
Posts: 8395
Re: Using DNS in PFSense to split traffic based on host request
«
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!
Te ajudei?
Doações são sempre bem vindas!
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Administrative
-----------------------------
=> Forum rules
=> Messages from the pfSense Team
=> Feedback
-----------------------------
pfSense English Support
-----------------------------
=> Installation and Upgrades
=> General Questions
=> 2.1 Snapshot Feedback and Problems
=> Post a bounty
===> Completed Bounties
===> Expired/Withdrawn Bounties
=> Hardware
=> Firewalling
=> NAT
=> CARP/VIPs
=> Routing and Multi WAN
=> Traffic Shaping
=> DHCP and DNS
=> IPv6
=> IPsec
=> PPTP
=> PPPoE Server
=> Captive Portal
=> webGUI
=> Wireless
=> SNMP
=> Packages
=> Virtualization installations and techniques
=> OpenVPN
=> Gaming
-----------------------------
Development/Documentation
-----------------------------
=> Documentation
=> Development
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
International Support
-----------------------------
=> Indonesian
=> Deutsch
=> Español
=> Français
=> Italiano
=> Russian
=> Nederlands
=> Norwegian
=> Portuguese
=> Polish
=> Romanian
=> Swedish
=> Turkish
-----------------------------
Retired
-----------------------------
=> 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
=> 1.2.1-RC Snapshot Feedback and Problems-RETIRED
=> 2.0-RC Snapshot Feedback and Problems - RETIRED
=> DNS Server testing area - RETIRED
Loading...