User Tools

Site Tools


gre_tunnel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
gre_tunnel [2015/12/13 14:47]
Francisco Dias [Forwarding Ports Over your GRE Tunnel]
gre_tunnel [2015/12/13 14:48]
Francisco Dias [Forwarding Ports Over your GRE Tunnel]
Line 111: Line 111:
 ===== Forwarding Ports Over your GRE Tunnel ===== ===== Forwarding Ports Over your GRE Tunnel =====
  
-To make things easier, we'll forward all ports to the backend server. ​If you're wanting to get more specific, you could add:+To make things easier, we'll forward all ports to the backend server.
  
-<​code>​ +Run the following commands on your BuyVM VPS:
--p tcp --dport 25565 +
-</​code> ​+
  
-If you just wanted to protect a minecraft server for instance. 
- 
-Please adjust, and run the following commands on your BuyVM VPS: 
 <​code>​ <​code>​
 iptables -t nat -A PREROUTING -d YOUR_FILTERED_IP -j DNAT --to-destination 192.168.168.2 iptables -t nat -A PREROUTING -d YOUR_FILTERED_IP -j DNAT --to-destination 192.168.168.2
 iptables -A FORWARD -d 192.168.168.2 -m state --state NEW,​ESTABLISHED,​RELATED -j ACCEPT iptables -A FORWARD -d 192.168.168.2 -m state --state NEW,​ESTABLISHED,​RELATED -j ACCEPT
 </​code>​ </​code>​
 +
 +If you're wanting to get more specific, you could add:
 +
 +<​code>​
 +-p tcp --dport 25565
 +</​code> ​
 +
 +If you just wanted to protect a minecraft server for instance.
  
 The first rule sets up the actual port forwarding and the second rule makes sure that connections get NAT'd, and matched back properly. The first rule sets up the actual port forwarding and the second rule makes sure that connections get NAT'd, and matched back properly.
gre_tunnel.txt · Last modified: 2016/06/02 00:46 by Francisco Dias