Showing posts with label Proxy. Show all posts
Showing posts with label Proxy. Show all posts

Multi wan Load balancing on pfsense

5:04 PM Add Comment
step by step setting multi wan 2 isp on pfsense

*** Welcome to pfSense 1.2-RC3-pfSense on pfsense ***

LAN * -> fxp0 -> NONE

OPT1 (OPT1) -> fxp1 -> NONE
OPT2 (OPT2) -> fxp2 -> NONE
WAN * -> fxp3 -> NONE
OPT3 (OPT3) -> fxp4 -> NONE

pfSense console setup
***********************
0) Logout (SSH only)
1) Assign Interfaces
2) Set LAN IP address
3) Reset the password webConfigurator
4) Reset to factory defaults
5) Reboot the system
6) Halt system
7) Ping host
Shell
9) PFtop
10) Filter Logs
11) Restart webConfigurator
12) pfSense PHP shell
13) Upgrade from console

Enter an option:

Furthermore, the processes carried out are:

1. Setting the LAN to get into the WEB Admin with option No. ways. 1 (Assign Interfaces)

Capable VLAN interfaces:
fxp0 00:50:8 b: 9a: da: 9a (up)
fxp1 00: d0: b7: 15:56: fa

fxp3 00: d0: b7: 15:54:05
fxp2 00: a0: c9: b3: a2: 4
d(up)
0: d0: b7: 15:66: ec
fxp4
0

Enter the parent interface name for the new VLAN (or nothing if finished): fxp0
Enter the VLAN tag (1-4094): 1

Then fill the NIC who detected / subsequent written like the above, for example VLAN: VLAN = fpx1 or wl01. Or leave with an empty value and press enter.
Furthermore LAN settings

Enter the LAN interface name or 'a' for auto-detection: fxp0

Enter the WAN interface name or 'a' for auto-detection: ^

WAN settings for interchangeable we passed at first because of interchangeable settings via the Web Console if you eat it sdh completed in the setting. For that we just leave with an empty value and press enter.

2. Setting LAN IP Address. Choose 2) Set LAN IP Address

Enter the new LAN IP address: 10.1.2.1

Subnet masks are Entered as bit counts (as in CIDR notation) in pfSense.
e.g. 255.255.255.0 = 24
255.255.0.0 = 16
255.0.0.0 = 8

Enter the new LAN subnet bit count: 24

Do you want to enable the DHCP server on LAN [y | n]? n


IP Address = 10.1.2.1, Subnet Mask = 24 (255.255.255.0) and to my morbidly DHCP is enabled.

Dr. I usually experience we will be confused network cards which one recognizable as a LAN Because there are poly-NIC. For that I am doing testing in turn connect with existing NIC and ping to the LAN network. Choose the console CLI pd no 8 (Shell) and do a ping to another PC on the LAN. After putting up signs in the know on the NIC.

3. Furthermore, we can set through the Web Console access with http://10.1.2.1 address.

Username: admin

Password: pfsense (default)

4. Setting the WAN's Address to the ISP



Next click the Interfaces -> WAN IP Address settings for an ISP


IP Address: 202.155.73.42/28

Gateway: 202.155.73.41

Click Save

Next click the Interfaces -> OPT1 for setting the IP Address the ISP 2 (Speedy)

Enable options OPT1: ON

IP Address: 192.168.1.100

Gateway: 192.168.1.1

Click Save

5. Setting DNS

Click on System -> General Setup

DNS1: 202.155.0.20 (provider-a)

DNS2: 202.134.0.155 (provider-b)

6. DNS Settings Path Route

Click on System - Static Route -> +
WAN: Indosat

Interfaces: WAN

Destination Network: 202.155.0.20/32

Gateway: 202.155.73.41

OPT1: Telkom Speedy

Interfaces: OPT1

Destination Network: 202.134.0.155/32

Gateway: 192.168.1.1

The result is like the following:




Click the button Applay Changes

7. Setting Load Balancer

Click on Services -> Load Balancer -> +
Name: Balancer

Type: Gateway

Behavior: Load Balancing

Monitor IP: Other -> eg the contents with DNS: 202.155.0.20

Interfaces Name: WAN

Click Add to poll

Continue filling the ISP IP monitor to 2

Monitor IP: Other -> 202.134.0.155

Interfaces Name: OPT1

Click Add to poll

Click Save

TIPS:

To maximize employment, IP Monitor IP Address should be sought across the ISP's router there dr router position in the fastest and closest office who should not encounter problems with the IP and DNS. Can be in the know with melakukn trace route to the ISP's DNS

The results such as the following fig



8. Setting Firewall Rules

Click Firewall -> Rules

Next do the following configuration:

A. Setting the LAN

Action: Pass

Interface: LAN

Protocol: TCP

Source: Type = LAN Subnet

Destination: Type = any

Gateway: Balancer

Click Save & Apply Changes



B. WAN Settings -> Link Indosat

Action: Pass

Interface: WAN

Protocol: TCP

Source: Type = LAN Subnet

Destination: Type = WAN Address

Gateway: 202.155.73.41

Click Save & Apply Changes




B. Setting OPT1 -> Link Speedy

Action: Pass

Interface: OPT1

Protocol: TCP

Source: Type = LAN Subnet

Destination: Address Type = OPT1

Gateway: 192.168.1.1

Click Save & Apply Changes

This documentation only describes the basic settings in pfsense dr Load Balancing. Many more who could do with functions of a firewall, routing, aliasing, grout, incoming balancing, bandwidth management. This information can dig pd www.pfsense.org website.


Configure SquidGuard On Pfsense

4:27 AM 2 Comments
What is a squidGuard
SquidGuard is a URL redirector used to use blacklists with the proxy software Squid. There are two big advantages to squidguard: it is fast and it is free. SquidGuard is published under GNU Public License.

SquidGuard can be used to
limit the web access for some users to a list of accepted/well known web servers and/or URLs only.
block access to some listed or blacklisted web servers and/or URLs for some users.
block access to URLs matching a list of regular expressions or words for some users. enforce the use of domainnames/prohibit the use of IP address in URLs.
redirect blocked URLs to an info page.
redirect banners to an empty GIF.
have different access rules based on time of day, day of the week, date etc. 

Installation

    Open Packages list: click System > Packages
    Install the Squid package, if it is not installed.
    Configure Squid package.
    Install SquidGuard package.


Configure the SquidGuard Package
Blacklist
Blacklists are optional, but often useful for allowing access to certain types of sites.
SquidGuard comes with a small blacklist basically for testing purposes. In production you don't want to use them. A better way is to start with one of the blacklist collections listed (alphabetically) below.

    MESD blacklists - They are freely available.
    Shalla's Blacklists - Free for non commercial/privat use. (Recommended)
    more..  Configure a Professional firewall using pfSense
Downloading blacklist:

  1. Open General Settings tab in SquidGuard package GUI, found at   Services > Proxy Filter.
  2. Check Blacklist to enable the use of blacklists
  3. Enter blacklist url in the field Blacklist URL.
  4. If your firewall is itself behind a proxy, enter the proxy informaion in Blacklist proxy (this   step is not         necessary for most people)
  5. Click Save
  6. Navigate to the Blacklist tab inside of Squidguard
  7. Click the Download button.
  8. Wait, while blacklist will downloaded and prepared to use(10-35 min). Progress will be displayed on that page as the list is downloaded and processed.
 original post
Tunning Performance Proxy : Lusca
Configure_the_SquidGuard_Package

Install Lusca Cache di Pfsense

Cara Install Lusca Cache di Pfsense

7:00 AM Add Comment

install lusca-cache di pf-sense

langka pertama anda harus install dulu squid stable, saya gunakan versi 2.7 bukan versi 3. setelah selesai menginstall squidru 
langka kedua menginstall lusca-cache  pada pf-sense. install  lusca-cache ini beda dengan cara yang pertama ketika anda menginstall squid pertama anda harus masuk dulu ke diagnostic > command 
copy paste likn ini di comand 

fetch http://pfsense-cacheboy.googlecode.com/svn/trunk/script/package.sh && chmod +x package.sh && ./package.sh

 clik execute 


langka ketiga anda menuju sytem>package istall lusca-cache dan tunggu sampai selesai jangan sampai di op stop atau di refresh browser anda atau akan terjadi error pada sytem anda.

selanjutnya anda test proxy anda bekerja apa tidak dengan mengetikan ip pfsense lan anda dengan port default 3128 contoh http://180.247.54.117:3128 atau anda bisa menggunakan whatismyip.com


Translator