Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
cloudinit /
net /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-12-04 13:17
__init__.py
38.7
KB
-rw-r--r--
2021-03-19 15:37
bsd.py
6.29
KB
-rw-r--r--
2021-03-19 15:37
cmdline.py
8.91
KB
-rw-r--r--
2021-03-19 15:37
dhcp.py
15.41
KB
-rw-r--r--
2021-03-19 15:37
eni.py
21.04
KB
-rw-r--r--
2021-03-19 15:37
freebsd.py
2.15
KB
-rw-r--r--
2021-03-19 15:37
netbsd.py
1.36
KB
-rw-r--r--
2021-03-19 15:37
netplan.py
15.83
KB
-rw-r--r--
2021-03-19 15:37
network_state.py
33.87
KB
-rw-r--r--
2021-03-19 15:37
openbsd.py
1.51
KB
-rw-r--r--
2021-03-19 15:37
renderer.py
1.87
KB
-rw-r--r--
2021-03-19 15:37
renderers.py
1.53
KB
-rw-r--r--
2021-03-19 15:37
sysconfig.py
39.85
KB
-rw-r--r--
2021-03-19 15:37
udev.py
1.38
KB
-rw-r--r--
2021-03-19 15:37
Save
Rename
# This file is part of cloud-init. See LICENSE file for license information. from cloudinit import log as logging from cloudinit import subp from cloudinit import util import cloudinit.net.bsd LOG = logging.getLogger(__name__) class Renderer(cloudinit.net.bsd.BSDRenderer): def __init__(self, config=None): super(Renderer, self).__init__() def write_config(self): if self.dhcp_interfaces(): self.set_rc_config_value('dhcpcd', 'YES') self.set_rc_config_value( 'dhcpcd_flags', ' '.join(self.dhcp_interfaces()) ) for device_name, v in self.interface_configurations.items(): if isinstance(v, dict): self.set_rc_config_value( 'ifconfig_' + device_name, v.get('address') + ' netmask ' + v.get('netmask')) def start_services(self, run=False): if not run: LOG.debug("netbsd generate postcmd disabled") return subp.subp(['service', 'network', 'restart'], capture=True) if self.dhcp_interfaces(): subp.subp(['service', 'dhcpcd', 'restart'], capture=True) def set_route(self, network, netmask, gateway): if network == '0.0.0.0': self.set_rc_config_value('defaultroute', gateway) def available(target=None): return util.is_NetBSD()