daily pastebin goal
14%
SHARE
TWEET

Untitled

Razva Feb 12th, 2016 (edited) 4 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /etc/network/interfaces:
  2. ============
  3.  This file describes the network interfaces available on your system
  4. # and how to activate them. For more information, see interfaces(5).
  5.  
  6. source /etc/network/interfaces.d/*
  7.  
  8. # The loopback network interface
  9. auto lo
  10. iface lo inet loopback
  11.  
  12. # The primary network interface
  13. auto eno1
  14. iface eno1 inet static
  15.         address 217.19.1.2
  16.         netmask 255.255.255.0
  17.         network 217.19.1.0
  18.         broadcast 217.19.1.255
  19.         gateway 217.19.1.1
  20.         # dns-* options are implemented by the resolvconf package, if installed
  21.         dns-nameservers 87.117.198.200 87.117.237.100 87.117.196.200
  22.         dns-search eu.cloudhipo.com
  23.  
  24. auto enp0s25
  25. iface enp0s25 inet static
  26.         address 192.168.1.2
  27.         netmask 255.255.255.0
  28.  
  29. +++++++++++++++++++++++++++++++++++++++++++++++++++
  30.  
  31. ifconfig:
  32. ============
  33. eno1      Link encap:Ethernet  HWaddr 0c:c4:7a:0d:76:ae
  34.           inet addr:217.19.1.2  Bcast:217.19.1.255  Mask:255.255.255.0
  35.           inet6 addr: fe80::ec4:7aff:fe0d:76ae/64 Scope:Link
  36.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  37.           RX packets:5941 errors:0 dropped:0 overruns:0 frame:0
  38.           TX packets:3322 errors:0 dropped:0 overruns:0 carrier:0
  39.           collisions:0 txqueuelen:1000
  40.           RX bytes:456384 (456.3 KB)  TX bytes:372344 (372.3 KB)
  41.           Interrupt:16 Memory:df900000-df920000
  42.  
  43. enp0s25   Link encap:Ethernet  HWaddr 0c:c4:7a:0d:76:af
  44.           inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
  45.           inet6 addr: fe80::ec4:7aff:fe0d:76af/64 Scope:Link
  46.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  47.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  48.           TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
  49.           collisions:0 txqueuelen:1000
  50.           RX bytes:0 (0.0 B)  TX bytes:680 (680.0 B)
  51.           Interrupt:20 Memory:dfb00000-dfb20000
  52.  
  53. lo        Link encap:Local Loopback
  54.           inet addr:127.0.0.1  Mask:255.0.0.0
  55.           inet6 addr: ::1/128 Scope:Host
  56.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  57.           RX packets:86 errors:0 dropped:0 overruns:0 frame:0
  58.           TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
  59.           collisions:0 txqueuelen:0
  60.           RX bytes:6496 (6.4 KB)  TX bytes:6496 (6.4 KB)
  61.  
  62. +++++++++++++++++++++++++++++++++++++++++++++++++++
  63.  
  64. iptables --table nat --list:
  65. ============
  66. Chain PREROUTING (policy ACCEPT)
  67. target     prot opt source               destination
  68.  
  69. Chain INPUT (policy ACCEPT)
  70. target     prot opt source               destination
  71.  
  72. Chain OUTPUT (policy ACCEPT)
  73. target     prot opt source               destination
  74.  
  75. Chain POSTROUTING (policy ACCEPT)
  76. target     prot opt source               destination
  77. MASQUERADE  all  --  anywhere             anywhere
  78. MASQUERADE  all  --  192.168.1.0/24       anywhere
RAW Paste Data
Top