Skip to content

Instantly share code, notes, and snippets.

@startergo
Created December 17, 2023 17:19
Show Gist options
  • Save startergo/010936df1916906957dfd23b69a025b0 to your computer and use it in GitHub Desktop.
Save startergo/010936df1916906957dfd23b69a025b0 to your computer and use it in GitHub Desktop.
T-mobile at home Internet and OpenWRT router settings

https://bostonenginerd.com/posts/tmobile-isp/

/etc/config/dhcp file:

config dnsmasq
	option domainneeded '1'
	option localise_queries '1'
	option rebind_localhost '1'
	option local '/lan/'
	option domain 'lan'
	option expandhosts '1'
	option authoritative '1'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option localservice '1'
	option ednspacket_max '1232'
	option confdir '/tmp/dnsmasq.d'
	option doh_backup_noresolv '-1'
	list doh_backup_server ''
	list doh_server '127.0.0.1#5053'
	list doh_server '127.0.0.1#5054'
	option noresolv '0'
	option cachesize '1000'
	option rebind_protection '0'
	option port '54'
	list server '192.168.1.1'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv4 'relay'
	option dhcpv6 'relay'
	option ra 'relay'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment