Jump to content
  • 0

Adding Proxy


Enkel

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.01
  • Content Count:  8
  • Reputation:   0
  • Joined:  08/08/24
  • Last Seen:  

Hello guys im new dev, so the thing is i want to add proxy in my server so its not laggy.
But i got an issue, when i logged in with the proxy it say "disconnect from server" then i check the login console, there a connection but the thing is the ip always change.

image.thumb.png.5fb6065f3ac7e83886677a622e64939f.png

i dont know why, im using debian for the proxy VPS.
N : im using this tutorial 

Thanks for help!

Edited by Enkel
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  328
  • Reputation:   54
  • Joined:  03/30/13
  • Last Seen:  

5 hours ago, Enkel said:

Update i already did it, using the commands bellow

#RO-Server Proxy IP Tables (Replace 0.0.0.0 with your Main Server IP & Port with Your Server Port)
iptables-save > /etc/iptables_rules
/sbin/iptables-restore < /etc/iptables_rules
iptables -t nat -A PREROUTING -p tcp --dport 6900 -j DNAT --to-destination 0.0.0.0:6900
iptables -t nat -A PREROUTING -p tcp --dport 5121 -j DNAT --to-destination 0.0.0.0:5121
iptables -t nat -A PREROUTING -p tcp --dport 6121 -j DNAT --to-destination 0.0.0.0:6121
iptables -t nat -A POSTROUTING -j MASQUERADE
sysctl net.ipv4.ip_forward=1
 
# Allow Ragnarok Online
iptables -A INPUT -p tcp --dport 6900 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp --dport 5121 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp --dport 6121 -m state --state NEW -j ACCEPT
 
# Have these rules take effect when iptables is started
iptables-save

but the thing is i cant see the player real ip, how we can see the player real ip? im try to remove this "iptables -t nat -A POSTROUTING -j MASQUERADE"
but when i remove it i no longer cant connect to my proxy 😞

you can't since that's how proxy works, otherwise it will not be a proxy if player can connect directly to the main server, it acts like a vpn wherein you can only see the ip of the vpn you are connected to

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.01
  • Content Count:  8
  • Reputation:   0
  • Joined:  08/08/24
  • Last Seen:  

Update i already did it, using the commands bellow

#RO-Server Proxy IP Tables (Replace 0.0.0.0 with your Main Server IP & Port with Your Server Port)
iptables-save > /etc/iptables_rules
/sbin/iptables-restore < /etc/iptables_rules
iptables -t nat -A PREROUTING -p tcp --dport 6900 -j DNAT --to-destination 0.0.0.0:6900
iptables -t nat -A PREROUTING -p tcp --dport 5121 -j DNAT --to-destination 0.0.0.0:5121
iptables -t nat -A PREROUTING -p tcp --dport 6121 -j DNAT --to-destination 0.0.0.0:6121
iptables -t nat -A POSTROUTING -j MASQUERADE
sysctl net.ipv4.ip_forward=1
 
# Allow Ragnarok Online
iptables -A INPUT -p tcp --dport 6900 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp --dport 5121 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp --dport 6121 -m state --state NEW -j ACCEPT
 
# Have these rules take effect when iptables is started
iptables-save

but the thing is i cant see the player real ip, how we can see the player real ip? im try to remove this "iptables -t nat -A POSTROUTING -j MASQUERADE"
but when i remove it i no longer cant connect to my proxy 😞
Edited by Enkel
Need to add more detail
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...