mirror of
				https://github.com/wangyu-/udp2raw.git
				synced 2025-11-04 20:25:34 +08:00 
			
		
		
		
	Updated run udp2raw with non root account (markdown)
@@ -7,7 +7,7 @@ You must have `setcap` as a prerequisite. `setcap` is shipped with most desktop
 | 
			
		||||
sudo setcap cap_net_raw+ep udp2raw_amd64
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
2. run udp2raw with -g option instead of -a, then udp2raw will generate a iptables rule for you 
 | 
			
		||||
2. run udp2raw with `-g` option instead of `-a`, then udp2raw will generate a iptables rule for you 
 | 
			
		||||
```
 | 
			
		||||
./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777  -k "passwd" --raw-mode faketcp -g    
 | 
			
		||||
```
 | 
			
		||||
@@ -16,7 +16,7 @@ sudo setcap cap_net_raw+ep udp2raw_amd64
 | 
			
		||||
sudo iptables -I INPUT -p tcp -m tcp --dport 4096 -j DROP     
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
4. then run udp2raw without -g option
 | 
			
		||||
4. then run udp2raw without `-g` option
 | 
			
		||||
```
 | 
			
		||||
./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777  -k "passwd" --raw-mode faketcp
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user