[ipv6only] Modifications pour pettre des machines sans ipv4 et pare feu pour nat64
This commit is contained in:
parent
d04d51a2c3
commit
a2369dadf4
9 changed files with 67 additions and 21 deletions
|
@ -19,7 +19,7 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import sys
|
||||
import os, re, syslog, cPickle, socket
|
||||
|
||||
from ldap_crans import crans_ldap, hostname
|
||||
|
@ -801,10 +801,13 @@ def mac_ip(ipt, machines, types_machines):
|
|||
macips(ipt, machines, types_machines)
|
||||
for type_m in types_machines:
|
||||
if not '-v6' in type_m and not type_m in tab.keys():
|
||||
dev = iface6(type_m)
|
||||
ipt.filter.input('-i %s -s %s -j %s' % (dev, prefix[type_m][0],
|
||||
'MAC' + type_m.upper()))
|
||||
ipt.filter.input('-i %s -j IEUI64' % dev)
|
||||
try:
|
||||
dev = iface6(type_m)
|
||||
ipt.filter.input('-i %s -s %s -j %s' % (dev, prefix[type_m][0],
|
||||
'MAC' + type_m.upper()))
|
||||
ipt.filter.input('-i %s -j IEUI64' % dev)
|
||||
except NoIface as e:
|
||||
sys.stderr.write("NoIface: %s" % e)
|
||||
|
||||
# On active les extensions de vie privée
|
||||
for net in prefix['subnet']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue