[Howto] PfSense 2 as Proxy using 1 interface
-
Hi all
Scenario: Installation of proxy server behind a hw firewall ( given by ISP)
Goal: Configure PfSense 2.0.1 to use just 1 ethernet card, WAN in this guide.Requirements: PC with at least 1 ethernet card, Pfsense 2.0.1
I will not cover the system installation, if you need it please refer to pfsense wiki.
Let's start:- Assign interfaces: if you have more then one interface, you have to assign just the WAN and skip the other(s) ( very important !!)
- Set inteface IP: you have to set a static ip address according to your lan configuration.
- Using your web browser, type the ip address given before and access webconfigurator ( user: admin - password: pfsense ), if the wizard starts skip it by clicking on pfsense logo ( upper left corner ).
- System -> General setup and adjust the settings to fit your lan configuration ( hostname , dns ,time zone ….) save and apply the changes.
- Intefaces -> WAN configure the gateway and uncheck "Block private networks" ( if checked ) and Block bogon Networks ( checked ! ), save and apply the changes.
- Check internet connection, at this point your pfsense-box should connect to internet.
- System -> Packages click on Available Packages and select squid. Accept the installation and wait till the installation is completed.
8 ) Services -> Proxy server configure your proxy interface ( WAN ) and your proxy port ( default 3128, 8080 in this guide ), save and apply the changes.
- Firewall -> Rules add a new rule , set Protocol ( TCP or TCP/UDP ), Source, Destination ( your proxy ip) and Destination port ( 8080 in this guide ). Save and apply the changes.
- …...That's all... Your simple proxy should work.