PfSense als load balancer (Multi-WAN Version 1.2.x)

Aus ConfigWiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(Installation)
(Konfiguration)
Zeile 76: Zeile 76:
 
=Konfiguration=
 
=Konfiguration=
 
   
 
   
 
+
UMTS Router Vodafone  UMTS Router O2  ADSL (slow)
 +
192.168.30.1          192.168.20.1    192.168.10.1
 +
255.255.255.0          255.255.255.0  255.255.255.0
 +
    |                          |            |
 +
    ------------ pfSense Box ---------------
 +
                    |
 +
                    LAN
 +
                192.168.0.1
 +
                255.255.255.0
 +
          DHCP Y (192.168.0.100 - ....200)
  
 
==pfSense console setup==
 
==pfSense console setup==
Zeile 83: Zeile 92:
 
* DHCP start address 192.168.0.100
 
* DHCP start address 192.168.0.100
 
* DHCP end address 192.168.0.10
 
* DHCP end address 192.168.0.10
 +
 +
==Setting up routers==
 +
...
 +
 +
==Using the pfSense Wizard==
 +
 +
* Go to http://192.168.0.1 (LAN IP)
 +
* Select System - Setup Wizard from the menu
 +
 +
General parameters screen
 +
 +
* hostname
 +
* domain
 +
* Primary DNS server
 +
* Secondary DNS server
 +
* Allow DNS server list to be overridden by DHCP/PPP on WAN
 +
 +
Note: it is important to use one from each (or use a public DNS service) or you will loose internet access when one or other connections fails.
 +
 +
* time server DNS name
 +
* Timezone
 +
 +
WAN configuration
 +
 +
* Selected type
 +
* IP address
 +
* Gateway
 +
 +
password and reboot
 +
 +
After Wizard general setup
 +
 +
* Go into 'Services' - 'DNS Forwarder', turn on
 +
**Register DHCP leases in DNS forwarder
 +
**Register DHCP static mappings in DNS forwarde

Version vom 2. Juli 2010, 13:12 Uhr

Inhaltsverzeichnis

Ziel

Die Idee ist, ein Gerät zu konfigurieren, das

  • 1 LAN mit mehreren WAN verbindet,
  • load balancing gewährleistet,
  • fall back Funktionalität bietet.


Fehler beim Erstellen des Vorschaubildes: Die Miniaturansicht konnte nicht am vorgesehenen Ort gespeichert werden
UMTS Router Vodafone   UMTS Router O2  ADSL (slow)
    |                          |            |
    ------------ pfSense Box ---------------
                    |
                   LAN

externe Anleitung

Multi-WAN Version 1.2.x

Hardware

Hardware Architectures

pfSense is supported only on the x86 architecture. The types of devices supported range from standard PCs to a variety of embedded devices. It is targeted at x86-based PCs 300 MHz or faster.

Minimum Hardware Requirements

PII / 128MB

Unsere Hardware

  • AMD Duron800
  • 512MB DDR400
  • 1x Realtek RTL8139c
  • 1x 3Com 3c905-TX
  • 2x 3Com 3c905-TX-M

Vorbereitung / HW-Bastelei

  • Zusammenbau
  • Notieren der Netzwerkkarten in Einbaureihenfolge von oben nach unten
  • Knoppix booten, Netzwerkkarten testen (ping) Tabelle anlegen
NIC-Name IRQ/Base Linux-Dev-Name BSD-Dev-Name MAC
3c905-TX irq5/0xD400 eth0 xl0 (später nach booten von pfSense eingefügt) 00:60:..
3c905-TX-M irq11/0xAF80 eth1 xl1 (später nach booten von pfSense eingefügt) 00:04:..
3c905-TX-M irq5/0xFF00 eth2 xl2 (später nach booten von pfSense eingefügt) 00:01:..
RTL8139c irq5/0x800 eth3 rl0 (später nach booten von pfSense eingefügt) 00:30:..
  • memtest
  • aktuelles pfSense "Live CD with Installer" downloaden und auf CD brennen

Installation

  • erst pfSense default von CD starten
  • bei entsprechender Frage Optionen installieren (I) wählen
  • eventuelle Fehlermeldungen von fdisk bzgl. zu großer Sektoren etc. durch skip ignorieren
  • wie gewünscht neu booten, CD entfernen

Konfiguration

UMTS Router Vodafone   UMTS Router O2  ADSL (slow)
192.168.30.1           192.168.20.1    192.168.10.1 
255.255.255.0          255.255.255.0   255.255.255.0
    |                          |            |
    ------------ pfSense Box ---------------
                    |
                   LAN
                192.168.0.1
                255.255.255.0
          DHCP Y (192.168.0.100 - ....200)

pfSense console setup

  • LAN IP Address: 192.168.0.1 / 255.255.255.0
  • DHCP y
  • DHCP start address 192.168.0.100
  • DHCP end address 192.168.0.10

Setting up routers

...

Using the pfSense Wizard

General parameters screen

  • hostname
  • domain
  • Primary DNS server
  • Secondary DNS server
  • Allow DNS server list to be overridden by DHCP/PPP on WAN

Note: it is important to use one from each (or use a public DNS service) or you will loose internet access when one or other connections fails.

  • time server DNS name
  • Timezone

WAN configuration

  • Selected type
  • IP address
  • Gateway

password and reboot

After Wizard general setup

  • Go into 'Services' - 'DNS Forwarder', turn on
    • Register DHCP leases in DNS forwarder
    • Register DHCP static mappings in DNS forwarde
Meine Werkzeuge