Project

General

Profile

pf.conf

ott, 12/26/2006 01:32 PM

Download (554 Bytes)

 
1
int_if="ral0"
2
ext_if="tun0"
3
sip_ip="192.168.0.5"
4

    
5
scrub in all
6

    
7
altq on $ext_if priq queue { std, voip }
8
queue std priority 0 priq(default red)
9
queue voip priority 1 priq(red)
10

    
11
nat on $ext_if from $int_if -> ($ext_if:0)
12

    
13
rdr on $ext_if proto { tcp, udp } to port 5060 -> $sip_ip
14

    
15
pass quick on lo0
16

    
17
block in on $ext_if
18
pass quick on $int_if
19
pass out on $ext_if keep state queue std
20

    
21
pass out on $ext_if proto { tcp, udp } from $sip_ip port 5060 \
22
keep state queue voip
23
pass in on $ext_if proto { tcp, udp } from $sip_ip port 5060 \
24
keep state queue voip