Add new route for lan1dmz
This commit is contained in:
parent
33002008aa
commit
290ca717ce
@ -35,6 +35,9 @@ for file in "${conffiles[@]}"; do
|
|||||||
# lan1dmz net
|
# lan1dmz net
|
||||||
awk 'NR==5{print "PostUp = ip route add 172.16.11.0/24 dev vladilena-road"}NR==5{print "PreDown = ip route del 172.16.11.0/24"}1' "$file" > "${file}.tmp"
|
awk 'NR==5{print "PostUp = ip route add 172.16.11.0/24 dev vladilena-road"}NR==5{print "PreDown = ip route del 172.16.11.0/24"}1' "$file" > "${file}.tmp"
|
||||||
mv "${file}.tmp" "$file"
|
mv "${file}.tmp" "$file"
|
||||||
|
# lan1dmz net
|
||||||
|
awk 'NR==5{print "PostUp = ip route add 172.16.11.0/24 via 172.16.7.1 metric 10"}NR==5{print "PreDown = ip route del 172.16.11.0/24"}1' "$file" > "${file}.tmp"
|
||||||
|
mv "${file}.tmp" "$file"
|
||||||
# NOTE only one PreDown line is required as we are using a specific table for this
|
# NOTE only one PreDown line is required as we are using a specific table for this
|
||||||
# TODO tables do not work as intended
|
# TODO tables do not work as intended
|
||||||
#awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 192.168.86.1 metric 10 table 7"}NR==5{print "PreDown = ip route flush table 7"}1' "$file" > "${file}.tmp"
|
#awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 192.168.86.1 metric 10 table 7"}NR==5{print "PreDown = ip route flush table 7"}1' "$file" > "${file}.tmp"
|
||||||
|
Loading…
Reference in New Issue
Block a user