10 lines
356 B
Bash
10 lines
356 B
Bash
#!/bin/bash
|
|
|
|
#
|
|
# Rules for SSH git clone
|
|
#
|
|
/sbin/iptables -A eth0-cont -s 0/0 -p tcp --syn --dport %%git_ssh_port -d %%container_ip_forge -j ACCEPT
|
|
%if %%getVar('mode_conteneur_actif','non') == 'oui'
|
|
/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:%%git_ssh_port
|
|
%end if
|