Advertisement
TheCataliasTNT2k

Untitled

Apr 11th, 2021 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. ##############DNSMASQ
  2. interface=br0
  3. dhcp-range=10.3.141.11,10.3.141.255,255.255.255.0,1h
  4. dhcp-option=6,10.3.141.1
  5. ##static dhcp leases removed
  6. address=/my-domain.tld/10.3.141.1
  7. address=/#/142.250.185.99
  8.  
  9.  
  10. ###############HOSTAPD
  11. driver=nl80211
  12. ctrl_interface=/var/run/hostapd
  13. ctrl_interface_group=0
  14. auth_algs=1
  15. wpa_key_mgmt=WPA-PSK
  16. beacon_int=100
  17. ssid=SSID
  18. channel=1
  19. hw_mode=g
  20. ieee80211n=0
  21. wpa_passphrase=PASSWD
  22. interface=wlp2s0
  23. bridge=br0
  24. wpa=3
  25. wpa_pairwise=CCMP
  26. country_code=DE
  27. ignore_broadcast_ssid=0
  28.  
  29.  
  30. ##############dhcpcd.conf
  31. hostname
  32. clientid
  33. persistent
  34. option rapid_commit
  35. option domain_name_servers, domain_name, domain_search, host_name
  36. option classless_static_routes
  37. option ntp_servers
  38. require dhcp_server_identifier
  39. slaac private
  40. nohook lookup-hostname
  41.  
  42. denyinterfaces eth0 wlan0
  43. interface br0
  44.  
  45.  
  46. ###########/etc/network/interfaces
  47. auto lo
  48. iface lo inet loopback
  49.  
  50. auto enp3s0
  51. allow-hotplug enp3s0
  52. iface enp3s0 inet manual
  53.  
  54. auto wlp2s0
  55. allow-hotplug wlp2s0
  56. iface wlp2s0 inet manual
  57.  
  58. auto br0
  59. iface br0 inet static
  60. bridge_ports enp3s0 wlp2s0
  61. address 10.3.141.1
  62. netmask 255.255.255.0
  63.  
  64.  
  65. ########nodogsplash.conf
  66. ###only used lines shown
  67.  
  68. GatewayInterface br0
  69. FirewallRuleSet authenticated-users {
  70. FirewallRule allow tcp port 53
  71. FirewallRule allow udp port 53
  72. FirewallRule allow tcp port 80
  73. FirewallRule allow tcp port 443
  74. FirewallRule allow udp port 67
  75. FirewallRule allow udp port 68
  76. }
  77. FirewallRuleSet preauthenticated-users {
  78. FirewallRule allow tcp port 443 to 10.3.141.1
  79. FirewallRule allow tcp port 80 to 10.3.141.1
  80. }
  81. FirewallRuleSet users-to-router {
  82. FirewallRule allow tcp port 53
  83. FirewallRule allow udp port 53
  84. FirewallRule allow tcp port 80
  85. FirewallRule allow tcp port 443
  86. FirewallRule allow udp port 67
  87. FirewallRule allow udp port 68
  88. }
  89. GatewayName Server
  90. GatewayAddress 10.3.141.1
  91. SplashPage splash.html
  92. GatewayPort 2050
  93. MaxClients 1000
  94.  
  95.  
  96. #########nodogsplash page to redirect to https
  97. <!DOCTYPE html>
  98. <html lang="en">
  99. <head>
  100. <title></title>
  101. <meta http-equiv="refresh" content="0; url=https://my-domain.tld">
  102. </head>
  103. <body>
  104. <h1>Redirecting...</h1>
  105. </body>
  106. </html>
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement