services = "{ http, https, auth, domain, nameserver }"
block all
pass out from any to any port $services
I think this should do the trick
note, this allows outgoing connection. If you want to make server, you need to allow incoming connections.
You didn't mention, what exactly you want to build.
This might not be sufficient (sometimes html are on 8080, for example)
you should take a look at /etc/services
This is my personal rule for html, that i use
Code:
pass out on $ext_if $net_type proto { tcp, udp } from { $ext_ip, <jail_ip_list> } to any port { http, https, domain, nameserver } group { users, wheel } keep state queue web
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.