diff options
-rwxr-xr-x | Generate | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -686,14 +686,14 @@ hostlist.each{ |host| iptables.puts " --jump ACCEPT" iptables.puts "iptables --append vpn-#{$NAMESPACE} --source #{ peer['vpn_address'] } --destination #{ host['vpn_address'] } \\" - iptables.puts " --protocol tcp --destination-port #{ host['bgp_port'] or 'bgp' } \\" + iptables.puts " --protocol tcp --destination-port #{ host['bgp_port'] or '179' } \\" iptables.puts " --in-interface #{ peer['ifacename'] } \\" iptables.puts " --jump ACCEPT" if host['ipv6'] and peer['ipv6'] ip6tables.puts "ip6tables --append vpn-#{$NAMESPACE} \\" ip6tables.puts " --source #{ host['link-local'][ peer['name'] ]['peer'] } \\" ip6tables.puts " --destination #{ host['link-local'][ peer['name'] ]['me'] } \\" - ip6tables.puts " --protocol tcp --destination-port #{ host['bgp_port'] or 'bgp' } \\" + ip6tables.puts " --protocol tcp --destination-port #{ host['bgp_port'] or '179' } \\" ip6tables.puts " --in-interface #{ peer['ifacename'] } \\" ip6tables.puts " --jump ACCEPT" end |