Add iptables rules to allow resin-vpn named interface to be used by VPN

This commit is contained in:
Praneeth Bodduluri 2016-09-06 23:25:24 +05:30
parent 291c542fd3
commit 2cc4b0fb46
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 ->