Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. lxc.lxcpath = /home/lxc
  2.  
  3. USE_LXC_BRIDGE="true"
  4. LXC_BRIDGE="lxc-bridge-nat"
  5. LXC_ADDR="192.168.100.1"
  6. LXC_NETMASK="255.255.255.0"
  7. LXC_NETWORK="192.168.100.0/24"
  8. LXC_DHCP_RANGE="192.168.100.2,192.168.100.254"
  9. LXC_DHCP_MAX="253"
  10. LXC_DHCP_CONFILE=""
  11. LXC_DOMAIN="lxc"
  12.  
  13. LXC_IPV6_ADDR="fc27::216:3eff:fe00:1"
  14. LXC_IPV6_MASK="64"
  15. LXC_IPV6_NETWORK="fc27::/64"
  16. LXC_IPV6_NAT="true"
  17.  
  18. # Template used to create this container: /usr/share/lxc/templates/lxc-download
  19. # Parameters passed to the template: -d debian -r buster -a amd64
  20. # Template script checksum (SHA-1): 273c51343604eb85f7e294c8da0a5eb769d648f3
  21. # For additional config options, please look at lxc.container.conf(5)
  22.  
  23. # Uncomment the following line to support nesting containers:
  24. #lxc.include = /usr/share/lxc/config/nesting.conf
  25. # (Be aware this has security implications)
  26.  
  27. # Auto start configuration
  28. # Mount shared folder so the container can access letsencrypt certificates
  29. # into its own /share folder
  30.  
  31. # Distribution configuration
  32. lxc.include = /usr/share/lxc/config/common.conf
  33. lxc.arch = linux64
  34.  
  35. # Container specific configuration
  36. lxc.start.auto = 1
  37. lxc.rootfs.path = dir:/home/lxc/test/rootfs
  38. lxc.uts.name = test
  39.  
  40. # Network configuration
  41. lxc.net.0.type = veth
  42. lxc.net.0.flags = up
  43. lxc.net.0.link = lxc-bridge-nat
  44.  
  45. PING 8.8.8.8 (8.8.8.8): 56 data bytes
  46. ^C--- 8.8.8.8 ping statistics ---
  47. 18 packets transmitted, 0 packets received, 100% packet loss
  48.  
  49. Generated by xtables-save v1.8.3 on Wed Jul 17 11:10:37 2019
  50. *filter
  51. :INPUT ACCEPT [245428:1063335794]
  52. :FORWARD ACCEPT [0:0]
  53. :OUTPUT ACCEPT [228241:18791314]
  54. :f2b-sshd - [0:0]
  55. :f2b-recidive - [0:0]
  56. -A INPUT -i lxc-bridge-nat -p tcp -m tcp --dport 53 -j ACCEPT
  57. -A INPUT -i lxc-bridge-nat -p udp -m udp --dport 53 -j ACCEPT
  58. -A INPUT -i lxc-bridge-nat -p tcp -m tcp --dport 67 -j ACCEPT
  59. -A INPUT -i lxc-bridge-nat -p udp -m udp --dport 67 -j ACCEPT
  60. -A INPUT -p tcp -j f2b-recidive
  61. -A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd
  62. -A FORWARD -o lxc-bridge-nat -j ACCEPT
  63. -A FORWARD -i lxc-bridge-nat -j ACCEPT
  64. -A FORWARD -p tcp -j f2b-recidive
  65. -A f2b-sshd -j RETURN
  66. -A f2b-recidive -j RETURN
  67. COMMIT
  68. # Completed on Wed Jul 17 11:10:37 2019
  69. # Generated by xtables-save v1.8.3 on Wed Jul 17 11:10:37 2019
  70. *nat
  71. :PREROUTING ACCEPT [0:0]
  72. :INPUT ACCEPT [0:0]
  73. :POSTROUTING ACCEPT [0:0]
  74. :OUTPUT ACCEPT [0:0]
  75. -A POSTROUTING -s 192.168.100.0/24 ! -d 192.168.100.0/24 -j MASQUERADE
  76. COMMIT
  77. # Completed on Wed Jul 17 11:10:37 2019
  78. # Generated by xtables-save v1.8.3 on Wed Jul 17 11:10:37 2019
  79. *mangle
  80. :PREROUTING ACCEPT [248302:1063534761]
  81. :INPUT ACCEPT [247677:1063489218]
  82. :FORWARD ACCEPT [538:39768]
  83. :OUTPUT ACCEPT [228241:18791314]
  84. :POSTROUTING ACCEPT [228779:18831082]
  85. -A POSTROUTING -o lxc-bridge-nat -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
  86. COMMIT
  87. # Completed on Wed Jul 17 11:10:37 2019
  88. # Generated by xtables-save v1.8.3 on Wed Jul 17 11:10:37 2019
  89. *raw
  90. :PREROUTING ACCEPT [3012:193211]
  91. :OUTPUT ACCEPT [2048:239550]
  92. COMMIT
  93. # Completed on Wed Jul 17 11:10:37 2019
  94. # Warning: iptables-legacy tables present, use iptables-legacy-save to see them
  95.  
  96. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  97. listening on eno1, link-type EN10MB (Ethernet), capture size 262144 bytes
  98. 11:12:38.938243 IP 192.168.100.78 > 8.8.8.8: ICMP echo request, id 1137, seq 0, length 64
  99. 11:12:39.939343 IP 192.168.100.78 > 8.8.8.8: ICMP echo request, id 1137, seq 1, length 64
  100. 11:12:40.940554 IP 192.168.100.78 > 8.8.8.8: ICMP echo request, id 1137, seq 2, length 64
  101. 11:12:41.941748 IP 192.168.100.78 > 8.8.8.8: ICMP echo request, id 1137, seq 3, length 64
  102. 11:12:42.942939 IP 192.168.100.78 > 8.8.8.8: ICMP echo request, id 1137, seq 4, length 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement