hey there ! so i have a question. i am trying to connect to asterisk over zerotier. it's working just fine with softphones but not cisco since it needs the same ip address configured.
so my home openwrt router with everything is 192.168.1.222
endpoint address is 172.24.0.222 on the same router on interface ZTxxxxxx. whenever i try to connect to asterisk i get a reply FROM 172.24.0.222 even though i connected to 192.168.1.222. Asterisk is the only thing that does that. TFTP and SSH works just fine i get replies from 192.168.1.222
is there any solution to that on Asterisk ITSELF ? because SNAT can fix it by force rewriting anything 172.24.0.222 >> 192.168.1.222 but that's like a Band-Aid it doesn't fix the actual problem
config defaults
option input 'ACCEPT'
option output 'ACCEPT'
option flow_offloading '1'
option forward 'ACCEPT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'wan'
list network 'wwan'
config include
option path '/etc/firewall.user'
config rule
option dest_port '1723'
option name 'pptp'
option target 'ACCEPT'
option proto 'all'
option src 'lan'
config rule
option target 'ACCEPT'
option name 'gre'
option src 'lan'
option proto 'gre'
option enabled '0'
config rule
option name 'Allow-OpenVPN-Inbound'
option target 'ACCEPT'
option proto 'tcp'
option src '*'
option dest_port '443'
config rule
option name 'Allow-OpenVPN-UDP'
option target 'ACCEPT'
option proto 'udp'
option src '*'
option dest_port '444'
config zone
option name 'lanMASQ'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
list network 'lan'
config zone
option name 'vpn0'
option input 'ACCEPT'
option forward 'ACCEPT'
option output 'ACCEPT'
option subnet '10.20.100.0/24'
option mtu_fix '1'
list network 'vpn0'
list network 'ipsec0'
config forwarding
option dest 'vpn0'
option src 'lan'
config forwarding
option dest 'lan'
option src 'vpn0'
config zone
option name 'Cloud2'
option input 'ACCEPT'
option output 'ACCEPT'
list network 'Cloud2'
option forward 'ACCEPT'
option auto_helper '0'
config zone
option name 'vpn1'
option input 'ACCEPT'
option forward 'ACCEPT'
option output 'ACCEPT'
option masq '1'
option masq_dest '0.0.0.0/0'
option masq_src '10.20.200.0/24'
list network 'vpn1'
config forwarding
option dest 'vpn1'
option src 'lan'
config forwarding
option dest 'lan'
option src 'vpn1'
config rule
option name 'Allow-speedtest'
option target 'ACCEPT'
option proto 'tcp'
option src '*'
option dest_port '9821'
config zone
option name 'cloud'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'cloud'
list device 'tun0'
option masq '1'
config forwarding
option src 'Cloud2'
option dest 'cloud'
config forwarding
option src 'Cloud2'
option dest 'lan'
config forwarding
option src 'Cloud2'
option dest 'vpn0'
config forwarding
option src 'Cloud2'
option dest 'vpn1'
config forwarding
option src 'cloud'
option dest 'Cloud2'
config forwarding
option src 'lan'
option dest 'Cloud2'
config forwarding
option src 'vpn0'
option dest 'Cloud2'
config forwarding
option src 'vpn1'
option dest 'Cloud2'
config forwarding
option src 'lanMASQ'
option dest 'Cloud2'
config forwarding
option src 'lanMASQ'
option dest 'cloud'
config forwarding
option src 'lanMASQ'
option dest 'lan'
config forwarding
option src 'lanMASQ'
option dest 'vpn0'
config forwarding
option src 'lanMASQ'
option dest 'vpn1'
config forwarding
option src 'Cloud2'
option dest 'lanMASQ'
config forwarding
option src 'cloud'
option dest 'lanMASQ'
config forwarding
option src 'lan'
option dest 'lanMASQ'
config forwarding
option src 'vpn0'
option dest 'lanMASQ'
config forwarding
option src 'vpn1'
option dest 'lanMASQ'
10.10.10.0 is the other zerotier cloud router LAN SUBNET.
see ? TFTP works. that's weird i get a reply from a different asterisk interface i don't even want this interface.
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'br-lan'
option type 'bridge'
option multicast '0'
list ports 'eth1.1'
list ports 'tap_0'
option ipv6 '0'
config device
option name 'br-wan'
option type 'bridge'
option multicast '0'
list ports 'eth0.2'
list ports 'tap_1'
option ipv6 '0'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.0.1'
option ipv6 '0'
option delegate '0'
option device 'br-lan'
config interface 'wan'
option proto 'static'
option ipaddr '192.168.1.222'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option broadcast '255.255.255.255'
option ipv6 '0'
option delegate '0'
option device 'br-wan'
list dns '208.67.222.222'
list dns '8.8.4.4'
list dns '1.1.1.1'
list dns '1.0.0.1'
option defaultroute '1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6t'
config interface 'wwan'
option proto 'dhcp'
option peerdns '0'
option delegate '0'
list dns '8.8.8.8'
list dns '208.67.222.222'
list dns '1.0.0.1'
option ipv6 '0'
option device 'wlan1'
config device
option name 'wlan1'
option ipv6 '0'
option multicast '0'
config interface 'vpn0'
option proto 'none'
option auto '1'
option device 'tun0'
config interface 'vpn1'
option proto 'none'
option auto '1'
option device 'tun1'
config interface 'ipsec0'
option proto 'none'
option device 'ipsec0'
config route
option target '10.80.0.0'
option netmask '255.255.255.0'
option interface 'wan'
option gateway '192.168.1.9'
config route
option target '10.20.200.0'
option netmask '255.255.255.0'
option interface 'wan'
option gateway '192.168.1.9'
config route
option interface 'wan'
option target '10.90.0.0'
option netmask '255.255.255.0'
option gateway '192.168.1.10'
config device
option name 'tun0'
config interface 'cloud'
option proto 'none'
option device 'tun0'
option defaultroute '0'
config device
option name 'zt0000000'
option ipv6 '0'
option acceptlocal '1'
option sendredirects '0'
option multicast '0'
config interface 'Cloud2'
option device 'zt000000'
option proto 'none'
option defaultroute '0'
option delegate '0'
config route
option interface 'Cloud2'
option target '10.10.10.0'
option netmask '255.255.255.0'
option gateway '172.24.24.24'