RADIUSdesk

logo

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:openvpn-bridges-prep-os [2023/10/23 14:34]
admin [Install VLAN Module]
technical:openvpn-bridges-prep-os [2023/10/23 14:47] (current)
admin [Configure the Interfaces]
Line 29: Line 29:
 </WRAP> </WRAP>
  
-<code bash>+<file bash rc.local>
 #!/bin/bash #!/bin/bash
    
Line 62: Line 62:
    
 exit 0 exit 0
-</code>+</file> 
 +  * If your server has two or more physical interfaces we do on need to first define a dummy interface. 
 +<file bash rc.local> 
 +#!/bin/bash 
 +  
 +#Now add the VLAN 
 +/sbin/ip link add link eth1 name eth1.101 type vlan id 101 
 +/sbin/ip link set eth1.101 up promisc on 
 +/sbin/brctl addbr br0.101 
 +/sbin/brctl addif br0.101 eth1.101 
 +/sbin/ip addr add 10.101.0.1/16 dev br0.101 
 +/sbin/ip link set dev br0.101 up 
 +  
 +/sbin/ip link add link eth1 name eth1.102 type vlan id 102 
 +/sbin/ip link set eth1.102 up promisc on 
 +/sbin/brctl addbr br0.102 
 +/sbin/brctl addif br0.102 eth1.102 
 +/sbin/ip addr add 10.102.0.1/16 dev br0.102 
 +/sbin/ip link set dev br0.102 up 
 +  
 +/sbin/ip link add link eth1 name eth1.103 type vlan id 103 
 +/sbin/ip link set eth1.103 up promisc on 
 +/sbin/brctl addbr br0.103 
 +/sbin/brctl addif br0.103 eth1.103 
 +/sbin/ip addr add 10.103.0.1/16 dev br0.103 
 +/sbin/ip link set dev br0.103 up 
 +  
 +exit 0 
 +</file> 
 +<WRAP center round info 90%> 
 +We don't use a Netplan file since it does not currently support things like setting a card in promiscuous mode. 
 +</WRAP> 
  
 ===== Add a Systemd Service for rc.local ===== ===== Add a Systemd Service for rc.local =====