Linux Virtualization Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
==NAT IP Masquerading==
==NAT IP Masquerading==


Shut down the [[KVM_Virtual_Networking_Concepts#Virtual_Network_Switch|virtual switch]] before modifying the [[iptables]] configuration.
Shut down the [[KVM_Virtual_Networking_Concepts#Virtual_Network_Switch|virtual switch]] before modifying the [[Iptables_Command_Line_Tool_Examples#NAT_IP_Masquerading_Configuration|iptables configuration]].


The public IP ranges for forward mode NAT, in order to create a port masquerading range can be set by running:
The public IP ranges for forward mode NAT, in order to create a port masquerading range can be set by running:

Revision as of 17:48, 27 June 2017

Internal

Virtual Switch Configuration

NAT IP Masquerading

Shut down the virtual switch before modifying the iptables configuration.

The public IP ranges for forward mode NAT, in order to create a port masquerading range can be set by running:

iptables -j SNAT --to-source [start-ip]-[end-ip]

Organizatorium