F5: Difference between revisions

185 bytes added ,  18 days ago
(3 intermediate revisions by the same user not shown)
Line 339:
 
sudo iptables -F
 
* Enable Internet access
sudo virsh attach-interface --type bridge --source virbr0 --model virtio client
 
=== Install WebServer ===
Line 365 ⟶ 362:
 
== F5 Configuration ==
{{UC}}
 
=== Create VLAN ===
Line 451 ⟶ 447:
=== Enable Internet Access on VMs ===
 
; On VMs:
sysctl -w net.ipv4.ip_forward=1
 
iptables --table nat --append POSTROUTING --out-interface enp3s0 -j MASQUERADE
* Add Interface for the common network on host to the VMs:
iptables --insert FORWARD --in-interface br0 -j ACCEPT
sudo virsh attach-interface --type bridge --source virbr0 --model virtio client
 
; On Host:
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables --table nat --append POSTROUTING --out-interface enp3s0ens192 -j MASQUERADE # ens192 is default exit interface in Host
sudo iptables --insert FORWARD --in-interface virbr0 -j ACCEPT # virbr0 is newly added interface in VM