Use custom iptables config for jenkins

This commit is contained in:
Mikolaj Izdebski 2015-06-26 20:47:11 +00:00
parent 599c876e6a
commit 4e593519cc
2 changed files with 92 additions and 2 deletions

View file

@ -21,7 +21,7 @@ jenkins_master: True
tcp_ports: [ 80 ]
custom_rules: [
custom_nat_rules: [
# Redirect port 80 to 8080, which is used by jenkins
'-A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080',
'-A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080',
]