Merge pull request #248 from resin-io/Issue-247

Add iptables rules to allow resin-vpn named interface to be used by VPN
This commit is contained in:
Praneeth 2016-09-09 17:42:24 +05:30 committed by GitHub
commit 700e5b87ea
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Add iptables rules to allow resin-vpn named interface to be used by VPN [Praneeth]
* Updated to coffee-script ~1.10.0 [Page]
* Catch exec format error and provide friendlier error message [Aleksis]

View File

@ -287,7 +287,7 @@ checkAndAddIptablesRule = (rule) ->
execAsync("iptables -A #{rule}")
exports.createIpTablesRules = ->
allowedInterfaces = ['tun0', 'docker0', 'lo']
allowedInterfaces = ['resin-vpn', 'tun0', 'docker0', 'lo']
Promise.each allowedInterfaces, (iface) ->
checkAndAddIptablesRule("INPUT -p tcp --dport #{config.listenPort} -i #{iface} -j ACCEPT")
.then ->