Skip to content

Commit

Permalink
gluon-mesh-vpn-fastd: use gluon-wan-dnsmasq
Browse files Browse the repository at this point in the history
  • Loading branch information
neocturne committed Jul 20, 2014
1 parent 4052bcc commit 5af1e58
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 105 deletions.
2 changes: 1 addition & 1 deletion gluon/gluon-mesh-vpn-fastd/Makefile
Expand Up @@ -11,7 +11,7 @@ define Package/gluon-mesh-vpn-fastd
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Support for connecting batman-adv meshes via fastd
DEPENDS:=+gluon-core +gluon-mesh-batman-adv +fastd
DEPENDS:=+gluon-core +gluon-mesh-batman-adv +gluon-wan-dnsmasq +fastd +iptables-mod-extra
endef

define Package/gluon-mesh-vpn-fastd/description
Expand Down

This file was deleted.

@@ -0,0 +1,3 @@
*nat
-I OUTPUT -m owner --gid-owner gluon-fastd -o lo -d 127.0.0.1 -p udp --dport 53 -j DNAT --to-destination :54
COMMIT

This file was deleted.

Expand Up @@ -13,9 +13,13 @@ local c = uci.cursor()
-- The previously used user is removed, we need root privileges to use the packet_mark option
users.remove_user('gluon-fastd')

-- Group for iptables rule
users.add_group('gluon-fastd', 800)


c:section('fastd', 'fastd', 'mesh_vpn',
{
group = 'gluon-fastd',
syslog_level = 'verbose',
interface = 'mesh-vpn',
mode = 'tap',
Expand Down Expand Up @@ -70,3 +74,15 @@ c:section('network', 'interface', 'mesh_vpn',

c:save('network')
c:commit('network')


c:section('firewall', 'include', 'mesh_vpn_dns',
{
type = 'restore',
path = '/lib/gluon/mesh-vpn-fastd/iptables.rules',
family = 'ipv4',
}
)

c:save('firewall')
c:commit('firewall')

0 comments on commit 5af1e58

Please sign in to comment.