mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Workaround to be able to access VPS IP from local network
This commit is contained in:
		
							parent
							
								
									5274b22d63
								
							
						
					
					
						commit
						5e22d6484f
					
				
					 4 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -72,6 +72,8 @@ if (proto == "tcp") {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
chain ss_rules_pre_{{ proto }} {
 | 
					chain ss_rules_pre_{{ proto }} {
 | 
				
			||||||
	type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
						type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
				
			||||||
 | 
						ip daddr @ss_rules_remote_servers accept;
 | 
				
			||||||
 | 
						ip6 daddr @ss_rules6_remote_servers accept;
 | 
				
			||||||
	meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto ss_rules_pre_src_{{ proto }};
 | 
						meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto ss_rules_pre_src_{{ proto }};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,8 @@ if (proto == "tcp") {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
chain ss_rules_pre_{{ proto }} {
 | 
					chain ss_rules_pre_{{ proto }} {
 | 
				
			||||||
	type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
						type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
				
			||||||
 | 
						ip daddr @ss_rules_remote_servers accept;
 | 
				
			||||||
 | 
						ip6 daddr @ss_rules6_remote_servers accept;
 | 
				
			||||||
	meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto ss_rules_pre_src_{{ proto }};
 | 
						meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto ss_rules_pre_src_{{ proto }};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,8 @@ if (proto == "tcp") {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
chain v2r_rules_pre_{{ proto }} {
 | 
					chain v2r_rules_pre_{{ proto }} {
 | 
				
			||||||
	type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
						type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
				
			||||||
 | 
						ip daddr @v2r_rules_remote_servers accept;
 | 
				
			||||||
 | 
						ip6 daddr @v2r_rules6_remote_servers accept;
 | 
				
			||||||
	meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto v2r_rules_pre_src_{{ proto }};
 | 
						meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto v2r_rules_pre_src_{{ proto }};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,6 +72,8 @@ if (proto == "tcp") {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
chain xr_rules_pre_{{ proto }} {
 | 
					chain xr_rules_pre_{{ proto }} {
 | 
				
			||||||
	type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
						type {{ type }} hook {{ hook }} priority {{ priority }};
 | 
				
			||||||
 | 
						ip daddr @xr_rules_remote_servers accept;
 | 
				
			||||||
 | 
						ip6 daddr @xr_rules6_remote_servers accept;
 | 
				
			||||||
	meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto xr_rules_pre_src_{{ proto }};
 | 
						meta l4proto {{ proto }}{%- let ifnames=get_ifnames(); if (length(ifnames)): %} iifname { {{join(", ", ifnames)}} }{% endif %} goto xr_rules_pre_src_{{ proto }};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue