Add etc hosts file

This commit is contained in:
Daniel Flanagan 2022-02-14 10:37:26 -06:00
parent 4287a61f9e
commit fe20febcd2
3 changed files with 31 additions and 1 deletions

27
etc-hosts Normal file
View file

@ -0,0 +1,27 @@
# Static table lookup for hostnames.
# See hosts(5) for details.
127.0.0.1 localhost
::1 localhost
127.0.1.1 router.h.lyte.dev router
# 10.0.0.1 router.h.lyte.dev router
10.0.0.1 vpn.h.lyte.dev
10.0.0.10 dragon.h.lyte.dev
10.0.0.210 git.lyte.dev
10.0.0.210 a.lyte.dev
10.0.0.210 h.lyte.dev
10.0.0.210 chat.lyte.dev
10.0.0.210 matrix.lyte.dev
10.0.0.210 bw.lyte.dev
10.0.0.210 files.lyte.dev
10.0.0.210 files.h.lyte.dev
10.0.0.210 grafana.lyte.dev
10.0.0.210 grafana.h.lyte.dev
10.0.0.210 faceless.h.lyte.dev
10.0.0.210 dmf.me
10.0.0.244 ourcraft.lyte.dev

View file

@ -30,3 +30,6 @@ recopy wan0.link /etc/systemd/network/10-wan0.link
# dhcp client configuration
recopy dhcpcd.conf /etc/dhcpcd.conf
# hosts file
recopy ./etc-hosts /etc/hosts

View file

@ -49,7 +49,7 @@ table ip nat {
iifname $WAN udp dport 60010-60019 dnat to 10.0.0.210
# allow host ssh
iifname $WAN tcp dport { 2221 } dnat to 10.0.0.10
iifname $WAN tcp dport { 2221, 5588, 5555 } dnat to 10.0.0.10
# allow mosh
iifname $WAN udp dport 60020-60029 dnat to 10.0.0.10