a) Can I implement these PostUp/PreDown commands as is, or will that mess with the CSF configuration?
b) if not a), can I implement these "natively" within the CSF framework statically and I just won't worry about PostUp/PreDown
Code: Select all
PostUp = ufw route allow in on wg0 out on ens192
PostUp = ufw route allow proto tcp to 192.168.100.9 port 53
PostUp = ufw route allow proto udp to 192.168.100.9 port 53
PostUp = iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
PostUp = iptables -t nat -I POSTROUTING -o ens192 -j MASQUERADE
PostUp = iptables -t nat -I PREROUTING -i ens192 -p tcp -m multiport --dport 53 -j DNAT --to-destination 192.168.100.9
PostUp = iptables -t nat -I PREROUTING -i ens192 -p udp -m multiport --dport 53 -j DNAT --to-destination 192.168.100.9