View Single Post
  #1   (View Single Post)  
Old 6th July 2014
EverydayDiesel EverydayDiesel is offline
Shell Scout
 
Join Date: Jan 2009
Posts: 124
Default AuthPF Configuration

I am having some issues getting authpf to work on my network.

If I open up putty and log in with this configuration, i type my username and pwd and then immediately the putty window closes.

(By the way ....If I open pf wide open then it the putty window will stay open and I have internet so I know it has to be something with the firewall rules)

/etc/pf.conf
Code:
EXT_IF = "xl0"
WIRELESS_IF = "athn0"

auth_web = "10.1.0.1"

table <authpf_users> persist

block drop log all

match out on $EXT_IF from $WIRELESS_IF:network nat-to ($EXT_IF)

pass out quick on $EXT_IF inet proto { tcp, udp } from $WIRELESS_IF:network
pass in on $WIRELESS_IF inet proto tcp from any to 10.2.0.1 port ssh

anchor "authpf/*"

/etc/authpf/authpf.rules
Code:
WIRELESS_IF = "athn0"

TCP_PORTS = "{ 80 443 ssh }"
UDP_PORTS = "{ 53 }

pass in quick on $WIRELESS_IF proto tcp from $user_ip to any port $TCP_PORTS

pass in quick on $WIRELESS_IF proto udp from $user_ip to any port $UDP_PORTS
Any ideas on what i could be doing wrong here?
Reply With Quote