mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 10:46:22 +00:00
Add iptables rules to allow resin-vpn named interface to be used by VPN
This commit is contained in:
parent
291c542fd3
commit
2cc4b0fb46
@ -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]
|
||||
|
||||
|
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user