“Transfert IP Linux” Réponses codées

Transfert IP Linux

# Enable IP forwarding
sudo sysctl -w net.ipv4.ip_forward=1 			# IPv4
sudo sysctl -w net.ipv6.conf.all.forwarding=1 	# IPv6

# Check status
sudo sysctl net.ipv4.ip_forward					# IPv4
sudo sysctl net.ipv6.conf.all.forwarding=1		# IPv6
Jojo

Activer le transfert IP Linux

sysctl net.ipv4.ip_forward       # to get IP forwarding status
  net.ipv4.ip_forward = 0        # IP forwarding is disabled

sysctl -w net.ipv4.ip_forward=1  # to enable IP forwarding (set to 0 to disable)
  net.ipv4.ip_forward = 1        # IP forwarding is enabled
Jittery Jackal

Réponses similaires à “Transfert IP Linux”

Questions similaires à “Transfert IP Linux”

Plus de réponses similaires à “Transfert IP Linux” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code