Skip to content

Instantly share code, notes, and snippets.

@tienthanh2509
Last active July 13, 2022 07:25
Show Gist options
  • Save tienthanh2509/69bc6649de9abb09e1b3ab50b3abc551 to your computer and use it in GitHub Desktop.
Save tienthanh2509/69bc6649de9abb09e1b3ab50b3abc551 to your computer and use it in GitHub Desktop.
Pfsense headless (without VGA and Serial console)

Note

Disable serial hint if needed

Comment out uart hints in file /boot/device.hints

#hint.uart.0.at="isa"
#hint.uart.0.port="0x3F8"
#hint.uart.0.flags="0x10"
#hint.uart.0.irq="4"
#hint.uart.1.at="isa"
#hint.uart.1.port="0x2F8"
#hint.uart.1.irq="3"

Set UEFI loader console to null

/boot/loader.conf

console="nullconsole"

diff --git a/./openvpn.inc.origin b/./openvpn.inc
index 1983ad5..555bf2e 100644
--- a/./openvpn.inc.origin
+++ b/./openvpn.inc
@@ -1076,12 +1076,12 @@ function openvpn_reconfigure($mode, $settings) {
case 'server_tls_user':
if ((!empty($ip) && !empty($mask)) ||
(!empty($ipv6) && !empty($prefix))) {
- if (is_ipaddr($ip)) {
- $conf .= "server {$ip} {$mask}\n";
- }
- if (is_ipaddr($ipv6)) {
- $conf .= "server-ipv6 {$ipv6}/{$prefix}\n";
- }
+ // if (is_ipaddr($ip)) {
+ // $conf .= "server {$ip} {$mask}\n";
+ // }
+ // if (is_ipaddr($ipv6)) {
+ // $conf .= "server-ipv6 {$ipv6}/{$prefix}\n";
+ // }
$conf .= "client-config-dir {$g['openvpn_base']}/server{$vpnid}/csc\n";
} else {
if ($settings['serverbridge_dhcp']) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment