Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /etc/network/interfaces:
- ============
- This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- source /etc/network/interfaces.d/*
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eno1
- iface eno1 inet static
- address 217.19.1.2
- netmask 255.255.255.0
- network 217.19.1.0
- broadcast 217.19.1.255
- gateway 217.19.1.1
- # dns-* options are implemented by the resolvconf package, if installed
- dns-nameservers 87.117.198.200 87.117.237.100 87.117.196.200
- dns-search eu.cloudhipo.com
- auto enp0s25
- iface enp0s25 inet static
- address 192.168.1.2
- netmask 255.255.255.0
- +++++++++++++++++++++++++++++++++++++++++++++++++++
- ifconfig:
- ============
- eno1 Link encap:Ethernet HWaddr 0c:c4:7a:0d:76:ae
- inet addr:217.19.1.2 Bcast:217.19.1.255 Mask:255.255.255.0
- inet6 addr: fe80::ec4:7aff:fe0d:76ae/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:5941 errors:0 dropped:0 overruns:0 frame:0
- TX packets:3322 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:456384 (456.3 KB) TX bytes:372344 (372.3 KB)
- Interrupt:16 Memory:df900000-df920000
- enp0s25 Link encap:Ethernet HWaddr 0c:c4:7a:0d:76:af
- inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
- inet6 addr: fe80::ec4:7aff:fe0d:76af/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:0 (0.0 B) TX bytes:680 (680.0 B)
- Interrupt:20 Memory:dfb00000-dfb20000
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- inet6 addr: ::1/128 Scope:Host
- UP LOOPBACK RUNNING MTU:65536 Metric:1
- RX packets:86 errors:0 dropped:0 overruns:0 frame:0
- TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:6496 (6.4 KB) TX bytes:6496 (6.4 KB)
- +++++++++++++++++++++++++++++++++++++++++++++++++++
- iptables --table nat --list:
- ============
- Chain PREROUTING (policy ACCEPT)
- target prot opt source destination
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- Chain POSTROUTING (policy ACCEPT)
- target prot opt source destination
- MASQUERADE all -- anywhere anywhere
- MASQUERADE all -- 192.168.1.0/24 anywhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement