summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xGenerate4
1 files changed, 2 insertions, 2 deletions
diff --git a/Generate b/Generate
index bdddc8e..6752a89 100755
--- a/Generate
+++ b/Generate
@@ -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