summaryrefslogtreecommitdiff
path: root/Generate
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-03-17 14:44:38 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-03-17 14:44:38 +0000
commitbc6bff18e54797adde19456f15ab73ef3241e482 (patch)
tree90e923618a52e7283e622284101093c10381e994 /Generate
parent39f116082d8afab47d59e68a5a9b601591c446c0 (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-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