Archive for the 'OpenBSD' Category

16
Dec
07

Transparent Firewall With Redundant Bridge

Creating a transparent firewall with redundant bridge using bridge+pf+pfsync


were used OpenBSD 4.2 on test


Using 4 network interfaces:

fxp0 = internal net
fxp1 (bridge0) = input traffic general
fxp2 (bridge0) = output traffic general
fxp3 = PFSync


MACHINE 1


Configuring the internal net interface:

# vi /etc/hostname.fxp0
inet 172.16.0.1 255.255.255.0 172.16.0.255 description “Internal Link”


Configuring the bridge (input/output) interface:


# vi /etc/hostname.fxp1
media 100baseTX mediaopt full-duplex
up


# vi /etc/hostname.fxp2
media 100baseTX mediaopt full-duplex
up


# vi /etc/bridgename.bridge0
add fxp1
add fxp2
up


Doing the same on another machine changing only the ips:


MACHINE 2


Configuring the internal net interface:


# vi /etc/hostname.fxp0
inet 172.16.0.2 255.255.255.0 172.16.0.255 description “Internal Link”


Configuring the bridge (input/output) interface:


# vi /etc/hostname.fxp1
media 100baseTX mediaopt full-duplex
up


# vi /etc/hostname.fxp2
media 100baseTX mediaopt full-duplex
up


# vi /etc/bridgename.bridge0
add fxp1
add fxp2
up




Calendar:

May 2012
S M T W T F S
« Dec    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories


Follow

Get every new post delivered to your Inbox.

Join 416 other followers