c8a7
![]() |
|
|
|
|
|||||||
| Firewalls IPFW, PF, IPF (but not limited) related discussion |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I did some google searching trying to find if anyone else constructed a PF exception for Echolink before I tackled it and the results are fairly sparse.
I, by no means, have a handle on PF, but this pf.conf is working for me. Here is my contribution for anyone else that might be looking too: Code:
# macros
#
ext_if = "xl0"
int_if = "xl1"
localnet = $int_if:network
# options
#
set loginterface $ext_if
# tables - none
#
# normalization
#
scrub in on $ext_if all fragment reassemble
scrub out on $ext_if all random-id fragment reassemble
# Redirect for Echolink
#
rdr on $ext_if proto {tcp,udp} from any to any port 5198:5200 -> 192.168.1.54
# NAT
#
nat on $ext_if from $localnet to any -> $ext_if
pass from { lo0, $localnet } to any
|
|
#2
|
||||
|
||||
|
Usually firewall should be set to block everything and allow only required ports. I do not see you are blocking anything at all...
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/ |
|
#3
|
||||
|
||||
|
PF, by default, blocks everything.
|
|
#4
|
||||
|
||||
|
I do not see any info regarding default block @ pf / pf.conf man page or openbsd.org pf faq page. If this is true than why all books and docs asks to put the following:
Code:
# setup a default deny policy block all
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/ |
|
#5
|
||||
|
||||
|
Hmm.. It seems I was confused with IPFilter. That has an pass all implicit rule but can be started with a block all implicit rule.
PF seems to have a "pass all" implicit rule: Quote:
Implicit rules should never be counted on though. For one there's no accounting done on them and second it's pretty easy to get them the wrong way around (as I've just demonstrated ).
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any benefit to running a firewall when I'm already behind one? | osx-addict | Firewalls | 14 | June 4th, 2009 23:29 |
| pf firewall on virtual image? | Mathurin | Firewalls | 0 | April 4th, 2009 05:54 |
| Temporarily disable ipfw during rule reload | usdmatt | Firewalls | 6 | March 26th, 2009 06:33 |
| Dynamic firewall rules | v0idnull | Firewalls | 1 | December 4th, 2008 00:48 |