Skip to content

Commit

Permalink
qzeleza#225 порядок
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Dec 16, 2024
1 parent 653a182 commit fee21fe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions opt/bin/libs/route
Original file line number Diff line number Diff line change
Expand Up @@ -133,29 +133,29 @@ cmd_route() {
local output

output=$(get_config_value 'route_full_ip')
if [ -z "${output}" ] ; then
output=$(route__text_empty 'route_full_ip=192.168.1.51+192.168.2.51')
else
if [ -n "${output}" ] ; then
output=$(route__text_from_ips "${output}")
else
output=$(route__text_empty 'route_full_ip=192.168.1.51+192.168.2.51')
fi
echo_debug 'IP, весь трафик которых идёт в тоннель' "${output}"

output=$(get_config_value 'route_by_list_ip')
if [ -z "${output}" ] ; then
output=$(route__text_empty 'route_by_list_ip=192.168.2.52+192.168.2.53')
else
if [ -n "${output}" ] ; then
output=$(route__text_from_ips "${output}")
else
output=$(route__text_empty 'route_by_list_ip=192.168.2.52+192.168.2.53')
fi
echo_debug 'IP с перехватом DNS, трафик которых идёт в тоннель согласно спискам' "${output}"

output="br0 $(get_guest_inface_list_from_config)"
echo_debug 'Сети с перехватом DNS, трафик которых идёт в тоннель согласно спискам' $(route__text_from_nets "${output}")

output=$(get_config_value 'route_excluded_ip')
if [ -z "${output}" ] ; then
output=$(route__text_empty 'route_excluded_ip=192.168.1.52+192.168.1.53')
else
if [ -n "${output}" ] ; then
output=$(route__text_from_ips "${output}")
else
output=$(route__text_empty 'route_excluded_ip=192.168.1.52+192.168.1.53')
fi
echo_debug 'IP, исключённые из перехвата DNS и трафика' "${output}"

Expand Down

0 comments on commit fee21fe

Please sign in to comment.