Differences

This shows you the differences between two versions of the page.

Link to this comparison view

home_server:media_vm_setup [2021-05-22 Sat wk20 16:17] – [Some Handy Commands to Check Configuration] baumkphome_server:media_vm_setup [2023-04-30 Sun wk17 17:43] (current) – external edit 127.0.0.1
Line 139: Line 139:
  
 To install nftables: "sudo apt update" followed by ''sudo apt install nftables'' To install nftables: "sudo apt update" followed by ''sudo apt install nftables''
 +++++Old, to;dr;|
 If the nftables repository can not be found in Ubuntu 18.04 they will need to be added: ''sudo vim /etc/apt/sources.list'' and add the following repositories: If the nftables repository can not be found in Ubuntu 18.04 they will need to be added: ''sudo vim /etc/apt/sources.list'' and add the following repositories:
 <file> <file>
Line 146: Line 146:
   deb http://security.ubuntu.com/ubuntu bionic-security universe   deb http://security.ubuntu.com/ubuntu bionic-security universe
 </file> </file>
 +++++
 ====Sample NFTables configuration script for PrivatVPN==== ====Sample NFTables configuration script for PrivatVPN====
 ''sudo vim /etc/nftables.conf'' ''sudo vim /etc/nftables.conf''
 ++++nftables.conf script| ++++nftables.conf script|
-<file>+<code>
 #!/usr/sbin/nft -f #!/usr/sbin/nft -f
  
Line 227: Line 228:
    }    }
 } }
-</file>+</code> 
 The use of the counter directive allows the usage to be checked. I commented out lines that were not being used. The use of the counter directive allows the usage to be checked. I commented out lines that were not being used.
 ++++ ++++
 +  *To see active tables in load nftables ''sudo nft list tables''
 +  *To see table commands: ''sudo nft list table ip firewall'' and ''sudo nft list table ip6 firewall''
   *Select the server from [[https://privatevpn.com/serverlist|PrivateVPN Server List]].     *Select the server from [[https://privatevpn.com/serverlist|PrivateVPN Server List]].  
   *The host IP address can be found using the following commands:  ''host au-mel.pvdata.host'' or '' ping au-mel.pvdata.host''.   *The host IP address can be found using the following commands:  ''host au-mel.pvdata.host'' or '' ping au-mel.pvdata.host''.