• Enter an appropriate IP address for the Virtual Service, e.g. 192.168.2.202
• Click Update
• Using the WUI, go to Maintenance > Firewall Script
• Scroll down to the Firewall Marks section
• Add the following lines to this section as shown in the screen shot below:
iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -p tcp --dport 443 -j MARK --set-mark 1
ip rule add prio 100 fwmark 1 table 100
ip route add local 0/0 dev lo table 100
• Click Update
17
Comentários a estes Manuais