Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. iptables -F
  2. iptables -t nat -F
  3. iptables -P INPUT ACCEPT
  4. iptables -P OUTPUT ACCEPT
  5. iptables -P FORWARD ACCEPT
  6. iptables -A FORWARD -i xenbr0 -s 192.168.0.1/255.255.255.0 -j ACCEPT
  7. iptables -t nat -A POSTROUTING -o eth_pub -j MASQUERADE
  8.  
  9. net.ipv4.ip_forward = 1
  10. net.ipv4.conf.all.forwarding = 1
  11. net.ipv4.conf.default.forwarding = 1
  12. net.ipv6.conf.all.forwarding = 1
  13. net.ipv4.conf.all.send_redirects = 1
  14. net.ipv4.conf.all.accept_source_route = 1
  15. net.ipv6.conf.all.accept_source_route = 1
  16.  
  17. eth2 Link encap:Ethernet HWaddr 00:07:43:08:4f:d6
  18. UP BROADCAST MULTICAST MTU:1500 Metric:1
  19. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  20. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  21. collisions:0 txqueuelen:1000
  22. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  23. Interrupt:32 Memory:98800000-98800fff
  24.  
  25. eth3 Link encap:Ethernet HWaddr 00:07:43:08:4f:d7
  26. UP BROADCAST MULTICAST MTU:1500 Metric:1
  27. RX packets:30544053 errors:0 dropped:0 overruns:0 frame:0
  28. TX packets:6114883 errors:0 dropped:0 overruns:0 carrier:0
  29. collisions:0 txqueuelen:1000
  30. RX bytes:39790647786 (37.0 GiB) TX bytes:8001873683 (7.4 GiB)
  31. Interrupt:32 Memory:98800000-98800fff
  32.  
  33. eth_loc Link encap:Ethernet HWaddr 00:21:5e:dc:5d:2e
  34. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  35. RX packets:57635104 errors:0 dropped:1781 overruns:0 frame:0
  36. TX packets:39718753 errors:0 dropped:0 overruns:0 carrier:0
  37. collisions:0 txqueuelen:1000
  38. RX bytes:82805662090 (77.1 GiB) TX bytes:44346906560 (41.3 GiB)
  39.  
  40. eth_pub Link encap:Ethernet HWaddr 00:21:5e:dc:5d:2c
  41. inet addr:73.38.248.103 Bcast:255.255.255.255 Mask:255.255.254.0
  42. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  43. RX packets:16016845 errors:0 dropped:0 overruns:0 frame:0
  44. TX packets:10959184 errors:0 dropped:0 overruns:0 carrier:0
  45. collisions:0 txqueuelen:1000
  46. RX bytes:18530980196 (17.2 GiB) TX bytes:8001064551 (7.4 GiB)
  47.  
  48. lo Link encap:Local Loopback
  49. inet addr:127.0.0.1 Mask:255.0.0.0
  50. UP LOOPBACK RUNNING MTU:65536 Metric:1
  51. RX packets:1551953 errors:0 dropped:0 overruns:0 frame:0
  52. TX packets:1551953 errors:0 dropped:0 overruns:0 carrier:0
  53. collisions:0 txqueuelen:0
  54. RX bytes:748269163 (713.6 MiB) TX bytes:748269163 (713.6 MiB)
  55.  
  56.  
  57. vif2.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
  58. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  59. RX packets:380180 errors:0 dropped:0 overruns:0 frame:0
  60. TX packets:548688 errors:0 dropped:0 overruns:0 carrier:0
  61. collisions:0 txqueuelen:32
  62. RX bytes:3055869428 (2.8 GiB) TX bytes:46331570 (44.1 MiB)
  63.  
  64. xenbr0 Link encap:Ethernet HWaddr 00:07:43:08:4f:d6
  65. inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
  66. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  67. RX packets:12099205 errors:0 dropped:0 overruns:0 frame:0
  68. TX packets:16902599 errors:0 dropped:0 overruns:0 carrier:0
  69. collisions:0 txqueuelen:0
  70. RX bytes:83409524568 (77.6 GiB) TX bytes:13594088205 (12.6 GiB)
  71.  
  72. bridge name bridge id STP enabled interfaces
  73. xenbr0 8000.000743084fd6 no eth2
  74. eth3
  75. eth_loc
  76. vif2.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement