Hello,
I'm very new to FreeBSD, also I don't need to do anything fancy except filtering packets from a specific user from the loopback interface then redirecting those packets to a proxy server.
I have something like this:
I know there is "tag" property that I can use, however, I don't know what the right syntax is for this specific case. What I want is tagging any outgoing traffics by that particular user, then redirecting those tagged traffics to the proxy. By doing that I can add other rules for other users.
Can someone please help me with this?
Thank you in advance
I'm very new to FreeBSD, also I don't need to do anything fancy except filtering packets from a specific user from the loopback interface then redirecting those packets to a proxy server.
I have something like this:
Code:
redir_ports = "{http, https}"
tproxy = "127.0.0.1 port 8090"
rdr pass proto tcp from any to any port $redir_ports -> $tproxy
pass out route-to (lo0 127.0.0.1) proto tcp from any to any port $redir_ports user user2
I know there is "tag" property that I can use, however, I don't know what the right syntax is for this specific case. What I want is tagging any outgoing traffics by that particular user, then redirecting those tagged traffics to the proxy. By doing that I can add other rules for other users.
Can someone please help me with this?
Thank you in advance