2015-05-20 16:01:36 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# Rules for SSH git clone
|
|
|
|
#
|
2015-05-26 15:50:46 +02:00
|
|
|
/sbin/iptables -A eth0-cont -d 192.0.2.101/32 -p tcp -m tcp --dport 22 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
|
2015-05-20 16:01:36 +02:00
|
|
|
%if %%getVar('mode_conteneur_actif','non') == 'oui'
|
2015-05-26 15:50:46 +02:00
|
|
|
/sbin/iptables -t nat -A PREROUTING -i eth0 -s 0/0 -p tcp --syn --dport %%git_ssh_port -j DNAT --to-destination %%container_ip_forge:22
|
2015-05-20 16:01:36 +02:00
|
|
|
%end if
|