From e26f9d611805a656457deff25f548939cdd1e946 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 11 Sep 2014 21:25:17 +0200 Subject: Do not lbind if host does not accept incoming connections --- Generate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Generate b/Generate index 5dc6f5b..616c82b 100755 --- a/Generate +++ b/Generate @@ -646,7 +646,8 @@ hostlist.each{ |host| conffile.puts "fragment #{mtu}" conffile.puts "ifconfig %s %s"%[host['vpn_address'], peer['vpn_address']] conffile.puts "rport #{host['inet_port'][ peer['name'] ]['remote']}" - conffile.puts "lport #{host['inet_port'][ peer['name'] ]['local']}" + conffile.puts "lport #{host['inet_port'][ peer['name'] ]['local']}" unless host['accepts'].nil? + conffile.puts "nobind" if host['accepts'].nil? conffile.puts "remote %s"%[peer['host_address']] if peer['host_address'] if host['bind_address'] conffile.puts "local %s"%[host['bind_address']] -- cgit v1.2.3