Advertisement
Guest User

net_map

a guest
Mar 17th, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.91 KB | None | 0 0
  1. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  2. 0.0.0.0         200.200.200.200     0.0.0.0         UG    0      0        0 eth2
  3. 10.8.0.1        10.8.0.5        255.255.255.255 UGH   0      0        0 tun0
  4. 10.8.0.5        0.0.0.0         255.255.255.255 UH    0      0        0 tun0
  5. 200.200.200.0     0.0.0.0         255.255.255.0   U     0      0        0 eth2
  6. 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
  7. 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth4
  8. 192.168.21.0    10.8.0.5        255.255.255.0   UG    0      0        0 tun0
  9.  
  10.  
  11. eth0      Link encap:Ethernet  HWaddr e0:69:95:af:36:c0  
  12.           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
  13.           inet6 addr: fe80::e269:95ff:feaf:36c0/64 Scope:Link
  14.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  15.           RX packets:2157915816 errors:0 dropped:0 overruns:0 frame:0
  16.           TX packets:4261067096 errors:0 dropped:0 overruns:0 carrier:1
  17.           collisions:0 txqueuelen:1000
  18.           RX bytes:2281577641 (2.2 GB)  TX bytes:3995732846 (3.9 GB)
  19.  
  20. eth2      Link encap:Ethernet  HWaddr 00:90:27:34:41:69  
  21.           inet addr:200.200.200.43  Bcast:200.200.200.255  Mask:255.255.255.0
  22.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  23.           RX packets:185850172 errors:0 dropped:0 overruns:0 frame:0
  24.           TX packets:126304026 errors:0 dropped:0 overruns:0 carrier:0
  25.           collisions:0 txqueuelen:1000
  26.           RX bytes:958144871 (958.1 MB)  TX bytes:1436591745 (1.4 GB)
  27.  
  28. eth4      Link encap:Ethernet  HWaddr 00:19:5b:8b:0d:4e  
  29.           inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
  30.           inet6 addr: fe80::219:5bff:fe8b:d4e/64 Scope:Link
  31.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  32.           RX packets:4139710118 errors:2 dropped:3 overruns:2 frame:0
  33.           TX packets:2093589929 errors:0 dropped:0 overruns:0 carrier:0
  34.           collisions:0 txqueuelen:1000
  35.           RX bytes:5331050148724 (5.3 TB)  TX bytes:167260690647 (167.2 GB)
  36.  
  37. lo        Link encap:Local Loopback  
  38.           inet addr:127.0.0.1  Mask:255.0.0.0
  39.           inet6 addr: ::1/128 Scope:Host
  40.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  41.           RX packets:69881 errors:0 dropped:0 overruns:0 frame:0
  42.           TX packets:69881 errors:0 dropped:0 overruns:0 carrier:0
  43.           collisions:0 txqueuelen:0
  44.           RX bytes:3741048 (3.7 MB)  TX bytes:3741048 (3.7 MB)
  45.  
  46. tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
  47.           inet addr:10.8.0.6  P-t-P:10.8.0.5  Mask:255.255.255.255
  48.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  49.           RX packets:10664582 errors:0 dropped:0 overruns:0 frame:0
  50.           TX packets:9518719 errors:0 dropped:0 overruns:0 carrier:0
  51.           collisions:0 txqueuelen:100
  52.           RX bytes:2878777227 (2.8 GB)  TX bytes:2831568799 (2.8 GB)
  53.  
  54.  
  55.  
  56.  
  57.  
  58. *mangle
  59. :PREROUTING ACCEPT [1856634633:1620636151916]
  60. :INPUT ACCEPT [2337341:521865912]
  61. :FORWARD ACCEPT [1854285443:1620113643452]
  62. :OUTPUT ACCEPT [1708084:1184235201]
  63. :POSTROUTING ACCEPT [1855993533:1621297883339]
  64. COMMIT
  65. # Completed on Sat Mar 10 22:34:10 2018
  66. # Generated by iptables-save v1.4.21 on Sat Mar 10 22:34:10 2018
  67. *nat
  68. :PREROUTING ACCEPT [202845:20634425]
  69. :INPUT ACCEPT [100374:8143151]
  70. :OUTPUT ACCEPT [8545:779010]
  71. :POSTROUTING ACCEPT [38159:4735081]
  72. -A PREROUTING -d 200.200.200.43/32 -p tcp -m tcp --dport 8080 -j DNAT --to-destination 192.168.1.29:8080
  73. -A POSTROUTING -s 192.168.0.0/24 -o eth2 -j SNAT --to-source 200.200.200.43
  74. -A POSTROUTING -s 192.168.1.0/24 -o eth2 -j SNAT --to-source 200.200.200.43
  75. COMMIT
  76. # Completed on Sat Mar 10 22:34:10 2018
  77. # Generated by iptables-save v1.4.21 on Sat Mar 10 22:34:10 2018
  78. *filter
  79. :INPUT ACCEPT [2335419:521688781]
  80. :FORWARD ACCEPT [1844274548:1618895117989]
  81. :OUTPUT ACCEPT [1708074:1184234601]
  82. :fail2ban-ssh - [0:0]
  83. :fail2ban-ssh-ddos - [0:0]
  84. :ufw-after-forward - [0:0]
  85. :ufw-after-input - [0:0]
  86. :ufw-after-logging-forward - [0:0]
  87. :ufw-after-logging-input - [0:0]
  88. :ufw-after-logging-output - [0:0]
  89. :ufw-after-output - [0:0]
  90. :ufw-before-forward - [0:0]
  91. :ufw-before-input - [0:0]
  92. :ufw-before-logging-forward - [0:0]
  93. :ufw-before-logging-input - [0:0]
  94. :ufw-before-logging-output - [0:0]
  95. :ufw-before-output - [0:0]
  96. :ufw-reject-forward - [0:0]
  97. :ufw-reject-input - [0:0]
  98. :ufw-reject-output - [0:0]
  99. :ufw-track-forward - [0:0]
  100. :ufw-track-input - [0:0]
  101. :ufw-track-output - [0:0]
  102. -A INPUT -p tcp -m multiport --dports 6881:6889 -j REJECT --reject-with icmp-port-unreachable
  103. -A INPUT -p udp -m multiport --dports 6881:6889 -j REJECT --reject-with icmp-port-unreachable
  104. -A FORWARD -i eth0 -o eth2 -j ACCEPT
  105. -A OUTPUT -p tcp -m multiport --dports 6881:6889 -j REJECT --reject-with icmp-port-unreachable
  106. -A OUTPUT -p udp -m multiport --dports 6881:6889 -j REJECT --reject-with icmp-port-unreachable
  107. COMMIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement