From bc6bff18e54797adde19456f15ab73ef3241e482 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 17 Mar 2008 14:44:38 +0000 Subject: Use 179 instead of bgp as port number git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@321 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- Generate | 4 ++-- 1 file 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 -- cgit v1.2.3