Skip to content

Commit

Permalink
reverting some changes introduced by patch to sudomesh/bugs#23 to tem…
Browse files Browse the repository at this point in the history
…porarily address sudomesh/bugs#27
  • Loading branch information
paidforby committed Apr 16, 2018
1 parent af21374 commit c5150c7
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,32 @@ config interface 'ext1mesh'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_bitmask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'ext2mesh'
option ifname 'eth0.2'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_bitmask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'mesh2'
option ifname 'mesh2'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'mesh5'
option ifname 'mesh5'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

# This will be our "peoplesopen.net" bridge
config interface 'open'
Expand All @@ -96,6 +104,8 @@ config interface 'open'
option proto 'static'
option ipaddr '<%= open_addr_ipv4 %>'
option netmask '<%= open_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'priv'
option type 'bridge'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,32 @@ config interface 'ext1mesh'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_bitmask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'ext2mesh'
option ifname 'eth0.2'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_bitmask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'mesh2'
option ifname 'mesh2'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'mesh5'
option ifname 'mesh5'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

# This will be our "peoplesopen.net" bridge
config interface 'open'
Expand All @@ -97,6 +105,8 @@ config interface 'open'
option proto 'static'
option ipaddr '<%= open_addr_ipv4 %>'
option netmask '<%= open_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'priv'
option type 'bridge'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,32 @@ config interface 'ext1mesh'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_bitmask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'ext2mesh'
option ifname 'eth0.3'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_bitmask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'mesh2'
option ifname 'mesh2'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'mesh5'
option ifname 'mesh5'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

# This will be our "peoplesopen.net" bridge
config interface 'open'
Expand All @@ -99,6 +107,8 @@ config interface 'open'
option proto 'static'
option ipaddr '<%= open_addr_ipv4 %>'
option netmask '<%= open_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'priv'
option type 'bridge'
Expand Down
3 changes: 2 additions & 1 deletion configs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ module.exports = function(u, hwInfo, callback) {
}),

relay_node_inet_ipv4_addr: '45.34.140.42',
exit_node_mesh_ipv4_addr: '100.64.0.42',
exit_node_mesh_ipv4_addr_1: '100.64.0.42',
exit_node_mesh_ipv4_addr_2: '100.64.0.43',
log_ip: '100.64.0.10',

operator: {
Expand Down
4 changes: 4 additions & 0 deletions configs/templates/files/etc/config/network
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ config interface 'adhoc'
option proto 'static'
option ipaddr '<%= adhoc_addr_ipv4 %>'
option netmask '<%= adhoc_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'open'
option ifname 'open0'
option proto 'static'
option ipaddr '<%= open_addr_ipv4 %>'
option netmask '<%= open_subnet_ipv4_mask %>'
list dns '<%= exit_node_mesh_ipv4_addr_1 %>'
list dns '<%= exit_node_mesh_ipv4_addr_2 %>'

config interface 'priv'
option ifname 'priv0'
Expand Down
2 changes: 2 additions & 0 deletions configs/templates/files/etc/resolv.conf.dnsmasq
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# These are the upstream DNS servers used by dnsmasq

nameserver <%= exit_node_mesh_ipv4_addr_2 %> # sudomesh exit server
nameserver <%= exit_node_mesh_ipv4_addr_1 %> # sudomesh exit server
nameserver 209.244.0.3 # Level3 primary DNS
nameserver 209.244.0.4 # Level3 secondary DNS
nameserver 84.200.69.80 # dns.watch primary DNS
Expand Down

0 comments on commit c5150c7

Please sign in to comment.