File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ if [ $OVPN_DEVICE == "tap" ]; then
129
129
# fi
130
130
131
131
# Add default route if eth is also gateway port
132
- echo ' checking if default gateway needs to be added for bridge'
133
- if [ $( ip route | grep -c " default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_BR " ) -eq 0 ]; then
134
- ip route add default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_BR
135
- fi
132
+ # echo 'checking if default gateway needs to be added for bridge'
133
+ # if [ $(ip route | grep -c "default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_BR") -eq 0 ]; then
134
+ # ip route add default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_BR
135
+ # fi
136
136
137
137
echo ' setting up IPTABLES'
138
138
# check if entry already exists before adding
@@ -244,10 +244,10 @@ cleanup()
244
244
# OVPN_BR_CIDR=$(mask2cidr $OVPN_BR_ETH_SUBNET)
245
245
# ip addr add $OVPN_BR_ETH_IP/$OVPN_BR_CIDR brd + dev $OVPN_BR_ETH_IF
246
246
247
- echo ' checking if default gateway needs to be added for pyhsical device'
248
- if [ $( ip route | grep -c " default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_ETH_IF " ) -eq 0 ]; then
249
- ip route add default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_ETH_IF
250
- fi
247
+ # echo 'checking if default gateway needs to be added for pyhsical device'
248
+ # if [ $(ip route | grep -c "default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_ETH_IF") -eq 0 ]; then
249
+ # ip route add default via $OVPN_BR_ETH_GATEWAY dev $OVPN_BR_ETH_IF
250
+ # fi
251
251
fi
252
252
253
253
echo ' Removing tap device'
You can’t perform that action at this time.
0 commit comments