Implement USBIP support
This commit is contained in:
parent
9e31dd69af
commit
e33bd3e90c
|
|
@ -118,6 +118,9 @@ export PATH="/usr/sbin:${PATH}"
|
||||||
|
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
||||||
|
# To fix weird terminal behaviour when in SSH
|
||||||
|
export TERM=vt100
|
||||||
|
|
||||||
neofetch
|
neofetch
|
||||||
# List all open ports and their associated programs
|
# List all open ports and their associated programs
|
||||||
ss -tulpn
|
ss -tulpn
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,18 @@
|
||||||
protocol: icmp
|
protocol: icmp
|
||||||
jump: ACCEPT
|
jump: ACCEPT
|
||||||
|
|
||||||
|
# USB/IP Configuration
|
||||||
|
- name: Accept inbound/outbound USBIP only on internal network
|
||||||
|
ansible.builtin.iptables:
|
||||||
|
chain: "{{ item }}"
|
||||||
|
protocol: tcp
|
||||||
|
source: 192.168.1.0/24
|
||||||
|
destination_port: 3240
|
||||||
|
jump: ACCEPT
|
||||||
|
loop:
|
||||||
|
- INPUT
|
||||||
|
- OUTPUT
|
||||||
|
|
||||||
# SMB/SAMBA Service
|
# SMB/SAMBA Service
|
||||||
- name: Accept inbound SMB/NETBIOS SSN/NETBIOS DGM/NETBIOS NS only from internal network
|
- name: Accept inbound SMB/NETBIOS SSN/NETBIOS DGM/NETBIOS NS only from internal network
|
||||||
ansible.builtin.iptables:
|
ansible.builtin.iptables:
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
# - exfat-fuse
|
# - exfat-fuse
|
||||||
# - exfat-utils
|
# - exfat-utils
|
||||||
- exfatprogs
|
- exfatprogs
|
||||||
|
- usbip
|
||||||
|
|
||||||
# VPN Client to access Proxy Server (Primarily for cockpit)
|
# VPN Client to access Proxy Server (Primarily for cockpit)
|
||||||
- wireguard
|
- wireguard
|
||||||
|
|
@ -71,6 +72,13 @@
|
||||||
loop:
|
loop:
|
||||||
- { key: "ANSIBLE_CONFIG", value: "{{ ansibleconf_directory }}/ansible.cfg" }
|
- { key: "ANSIBLE_CONFIG", value: "{{ ansibleconf_directory }}/ansible.cfg" }
|
||||||
|
|
||||||
|
- name: Ensure vhci_hcd kernel module is loaded and persistent on reboot (For USBIP client support)
|
||||||
|
become: yes
|
||||||
|
community.general.modprobe:
|
||||||
|
name: vhci_hcd
|
||||||
|
state: present
|
||||||
|
persistent: present
|
||||||
|
|
||||||
# System Setup
|
# System Setup
|
||||||
- name: Ensure .bashrc is updated
|
- name: Ensure .bashrc is updated
|
||||||
template:
|
template:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue