View Single Post
Old 5th December 2013
esilvaz1101 esilvaz1101 is offline
New User
 
Join Date: Nov 2013
Location: san antonio, TX
Posts: 7
Default

For some reason when I built the server and went to write the PF.CONF file the system by default had this on their should I delete it or just add my section? and also ifconfig show my nic=lo0 but this script put "lo" as you can see bellow. Is this just an example and it does nothing at all or I need it?
Code:
       #$OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $

# See pf.conf(5) for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.

# increase default state limit from 10'000 states on busy systems
#set limit states 100000

set skip on lo

# filter rules and anchor for ftp-proxy(8)
#anchor "ftp-proxy/*"
#pass in quick inet proto tcp to port ftp divert-to 127.0.0.1 port 8021

# anchor for relayd(8)
#anchor "relayd/*"

block           # block stateless traffic
pass            # establish keep-state

# rules for spamd(8)
#table <spamd-white> persist
#table <nospamd> persist file "/etc/mail/nospamd"
#pass in on egress proto tcp from any to any port smtp \
#    rdr-to 127.0.0.1 port spamd
#pass in on egress proto tcp from <nospamd> to any port smtp
#pass in log on egress proto tcp from <spamd-white> to any port smtp
#pass out log on egress proto tcp to any port smtp


#block in quick from urpf-failed to any # use with care

# By default, do not permit remote connections to X11
block in on ! lo0 proto tcp to port 6000:6010

#COnfiguration is for terminal server with single NIC. It blocks
#by default, and passes inbound statefull traffic for ssh, web, auth, andSQL inb
ound

####policy section######

# return TCP RST or ICMP UNREACHABLE for Blocked Traffic:
#set block-policy return

# do not filter looback traffic:
set skip lo0

####Filter Rules #####
# block by default:
block all

# pass stateful traffic for four applications on this terminal server:
pass in proto tcp from any to any port {ssh, www, auth, mysql}
Reply With Quote