From fe20febcd2c2900be35622a7051a6dc478f511b6 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 14 Feb 2022 10:37:26 -0600 Subject: [PATCH] Add etc hosts file --- etc-hosts | 27 +++++++++++++++++++++++++++ link.fish | 3 +++ nftables.conf | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 etc-hosts diff --git a/etc-hosts b/etc-hosts new file mode 100644 index 0000000..207787d --- /dev/null +++ b/etc-hosts @@ -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 diff --git a/link.fish b/link.fish index b774680..56ba429 100755 --- a/link.fish +++ b/link.fish @@ -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 diff --git a/nftables.conf b/nftables.conf index 7ef2a0c..d89d5e1 100644 --- a/nftables.conf +++ b/nftables.conf @@ -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