Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##############DNSMASQ
- interface=br0
- dhcp-range=10.3.141.11,10.3.141.255,255.255.255.0,1h
- dhcp-option=6,10.3.141.1
- ##static dhcp leases removed
- address=/my-domain.tld/10.3.141.1
- address=/#/142.250.185.99
- ###############HOSTAPD
- driver=nl80211
- ctrl_interface=/var/run/hostapd
- ctrl_interface_group=0
- auth_algs=1
- wpa_key_mgmt=WPA-PSK
- beacon_int=100
- ssid=SSID
- channel=1
- hw_mode=g
- ieee80211n=0
- wpa_passphrase=PASSWD
- interface=wlp2s0
- bridge=br0
- wpa=3
- wpa_pairwise=CCMP
- country_code=DE
- ignore_broadcast_ssid=0
- ##############dhcpcd.conf
- hostname
- clientid
- persistent
- option rapid_commit
- option domain_name_servers, domain_name, domain_search, host_name
- option classless_static_routes
- option ntp_servers
- require dhcp_server_identifier
- slaac private
- nohook lookup-hostname
- denyinterfaces eth0 wlan0
- interface br0
- ###########/etc/network/interfaces
- auto lo
- iface lo inet loopback
- auto enp3s0
- allow-hotplug enp3s0
- iface enp3s0 inet manual
- auto wlp2s0
- allow-hotplug wlp2s0
- iface wlp2s0 inet manual
- auto br0
- iface br0 inet static
- bridge_ports enp3s0 wlp2s0
- address 10.3.141.1
- netmask 255.255.255.0
- ########nodogsplash.conf
- ###only used lines shown
- GatewayInterface br0
- FirewallRuleSet authenticated-users {
- FirewallRule allow tcp port 53
- FirewallRule allow udp port 53
- FirewallRule allow tcp port 80
- FirewallRule allow tcp port 443
- FirewallRule allow udp port 67
- FirewallRule allow udp port 68
- }
- FirewallRuleSet preauthenticated-users {
- FirewallRule allow tcp port 443 to 10.3.141.1
- FirewallRule allow tcp port 80 to 10.3.141.1
- }
- FirewallRuleSet users-to-router {
- FirewallRule allow tcp port 53
- FirewallRule allow udp port 53
- FirewallRule allow tcp port 80
- FirewallRule allow tcp port 443
- FirewallRule allow udp port 67
- FirewallRule allow udp port 68
- }
- GatewayName Server
- GatewayAddress 10.3.141.1
- SplashPage splash.html
- GatewayPort 2050
- MaxClients 1000
- #########nodogsplash page to redirect to https
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title></title>
- <meta http-equiv="refresh" content="0; url=https://my-domain.tld">
- </head>
- <body>
- <h1>Redirecting...</h1>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement