diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-03-17 14:44:38 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-03-17 14:44:38 +0000 |
commit | bc6bff18e54797adde19456f15ab73ef3241e482 (patch) | |
tree | 90e923618a52e7283e622284101093c10381e994 /Generate | |
parent | 39f116082d8afab47d59e68a5a9b601591c446c0 (diff) |
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
Diffstat (limited to 'Generate')
-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 |