Use custom iptables config for jenkins
This commit is contained in:
parent
599c876e6a
commit
4e593519cc
2 changed files with 92 additions and 2 deletions
|
@ -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',
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue