Redirection de ports
This commit is contained in:
		
							
								
								
									
										5
									
								
								SDIS29/gwsio4/redirp.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								SDIS29/gwsio4/redirp.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
echo "1" > /proc/sys/net/ipv4/ip_forward
 | 
			
		||||
sudo iptables -t nat -A PREROUTING -d 10.121.38.34 -p udp --dport 515 -j DNAT --to-dest 192.168.0.100:514
 | 
			
		||||
sudo iptables -t nat -A POSTROUTING -d 192.168.0.100 -p udp --dport 515 -j SNAT --to 10.121.38.34
 | 
			
		||||
		Reference in New Issue
	
	Block a user