From 7701f3d8f7927efaf42265c32fd83e2565b718b6 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:54:46 +0300 Subject: [PATCH] setup win10 RDP because TigerVNC sucks --- bhyve/win10-rdp.sh | 3 +++ dnsmasq.conf | 1 + pf.conf | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100755 bhyve/win10-rdp.sh diff --git a/bhyve/win10-rdp.sh b/bhyve/win10-rdp.sh new file mode 100755 index 0000000..3079aa7 --- /dev/null +++ b/bhyve/win10-rdp.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +xfreerdp3 /d:win10 /v:10.0.0.10 /p:12345678 /sec:tls /w:1366 /h:700 diff --git a/dnsmasq.conf b/dnsmasq.conf index 400865e..06060d6 100644 --- a/dnsmasq.conf +++ b/dnsmasq.conf @@ -4,5 +4,6 @@ dhcp-range=10.0.0.2,10.0.0.254,12h dhcp-host=00:16:3e:54:9f:a0,srv-master,10.0.0.2 dhcp-host=00:16:3e:ea:77:71,srv-slave1,10.0.0.3 dhcp-host=00:16:3e:41:65:1e,srv-slave2,10.0.0.4 +dhcp-host=00:a0:98:71:7f:b6,win10,10.0.0.10 dhcp-option=option:ntp-server,10.0.0.1 dhcp-option=option:dns-server,10.0.0.1 diff --git a/pf.conf b/pf.conf index 64be23b..75ead0a 100644 --- a/pf.conf +++ b/pf.conf @@ -40,3 +40,10 @@ pass in on $pf_strict inet proto tcp from to any port $tcp_services pass in on $pf_strict inet proto udp from to any port $udp_services # Allow outgoing traffic pass out on $pf_strict all + +# TAILSCALE +block in log on tailscale0 all + +pass in on tailscale0 inet proto tcp from any to any port 1337 + +pass out on tailscale0 all