Hi,
Anybody see any error in my pf.conf?
When connected to my OpenVPNiI cannot access internet.
Thanks in advance.
rc.conf
pf.conf
Anybody see any error in my pf.conf?
When connected to my OpenVPN
Thanks in advance.
rc.conf
Code:
gateway_enable="YES"
pf_enable="YES"
pf.conf
Code:
my_int = "vtnet0"
internal_net = "192.168.0.0/16"
external_addr = "37.48.xx.xx"
nat on $my_int from $internal_net to any -> $external_addr
set skip on lo
block in log all
pass in on $my_int proto tcp from any to any port 22 keep state
pass in on $my_int proto tcp from any to any port 80 keep state
pass in on $my_int proto tcp from any to any port 1194 keep state
pass in on $my_int proto udp from any to any port 1194 keep state
pass in quick on $my_int proto icmp all keep state
pass in proto gre all keep state
pass in from any to $internal_net
pass in from $internal_net to any
pass out proto { gre, tcp, udp, icmp } all keep state