Changeset 6037


Ignore:
Timestamp:
Oct 13, 2017, 2:24:18 PM (2 years ago)
Author:
kbut
Message:

rename path

Location:
python-llxnet/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python-llxnet/trunk/fuentes/debian/changelog

    r6033 r6037  
     1python-llxnet (0.18) xenial; urgency=medium
     2
     3  * Rename files for nat
     4
     5 -- Raul Rodrigo Segura <raurodse@gmail.com>  Fri, 13 Oct 2017 14:23:23 +0200
     6
    17python-llxnet (0.17) xenial; urgency=medium
    28
  • python-llxnet/trunk/fuentes/src/lliurex/interfacesparser.py

    r6032 r6037  
    477477        def enable_forwarding_ipv4(self,persistent=False):
    478478                if (persistent):
    479                         self.change_option_sysctl('/etc/sysctl.d/network-parser-forwarding.conf','net.ipv4.ip_forward','net.ipv4.ip_forward=1')
     479                        self.change_option_sysctl('/etc/sysctl.d/10-lliurex-forwarding.conf','net.ipv4.ip_forward','net.ipv4.ip_forward=1')
    480480                f = open('/proc/sys/net/ipv4/ip_forward','w')
    481481                f.write('1')
     
    484484        def disable_forwarding_ipv4(self,persistent=False):
    485485                if (persistent):
    486                         self.change_option_sysctl('/etc/sysctl.d/network-parser-forwarding.conf','net.ipv4.ip_forward','net.ipv4.ip_forward=0')
     486                        self.change_option_sysctl('/etc/sysctl.d/10-lliurex-forwarding.conf','net.ipv4.ip_forward','net.ipv4.ip_forward=0')
    487487                f = open('/proc/sys/net/ipv4/ip_forward','w')
    488488                f.write('0')
     
    491491        def enable_forwarding_ipv6(self,persistent=False):
    492492                if (persistent):
    493                         self.change_option_sysctl('/etc/sysctl.d/network-parser-forwarding.conf','net.ipv6.conf.all.forwarding','net.ipv6.conf.all.forwarding=1')
     493                        self.change_option_sysctl('/etc/sysctl.d/10-lliurex-forwarding.conf','net.ipv6.conf.all.forwarding','net.ipv6.conf.all.forwarding=1')
    494494                f = open('/proc/sys/net/ipv6/conf/all/forwarding','w')
    495495                f.write('1')
     
    498498        def disable_forwarding_ipv6(self,persistent=False):
    499499                if (persistent):
    500                         self.change_option_sysctl('/etc/sysctl.d/network-parser-forwarding.conf','net.ipv6.conf.all.forwarding','net.ipv6.conf.all.forwarding=0')
     500                        self.change_option_sysctl('/etc/sysctl.d/10-lliurex-forwarding.conf','net.ipv6.conf.all.forwarding','net.ipv6.conf.all.forwarding=0')
    501501                f = open('/proc/sys/net/ipv6/conf/all/forwarding','w')
    502502                f.write('0')
     
    580580                        raise Exception("Type not supported")
    581581                try:
    582                         f = open('/etc/sysctl.d/network-parser-forwarding.conf','r')
     582                        f = open('/etc/sysctl.d/10-lliurex-forwarding.conf','r')
    583583                except :
    584584                        return False
Note: See TracChangeset for help on using the changeset viewer.