Redirect another ts3 server

zhaiks

Active Member
Joined
Sep 17, 2016
Messages
42
Reaction score
1
Points
80
For example, if I have my server x.x.x.x: 9987 main. And I have another x.x.x.x: 9990. I would like it when users connect to this server x.x.x.x: 9990 automatically redirect it to the main x.x.x.x: 9987, showing a redirect window
 

Wrath X

Member
Joined
Oct 2, 2015
Messages
96
Reaction score
34
Points
53
For example, if I have my server x.x.x.x: 9987 main. And I have another x.x.x.x: 9990. I would like it when users connect to this server x.x.x.x: 9990 automatically redirect it to the main x.x.x.x: 9987, showing a redirect window
There is no way to do it automatically but,
Change the Host Message Mod to Show Host Message Popup Window and Disconnect and type a Host Message like that:
Code:
[URL=ts3server://x.x.x.?port=9987]x.x.x.x:9987[/URL]
 

Nýuu™

Member
Joined
Nov 18, 2015
Messages
150
Reaction score
54
Points
63
I am not sure what you trying to do. But if I get it right you can use iptables for that.
Code:
iptables -A FORWARD -i eth0 (interface) -p udp --dport 9990 -d x.x.x.x:9987 -j ACCEPT
Dont forget

Code:
sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 0
sysctl -p /etc/sysctl.conf
If its not the same IP adresse it would work too but it will fuck up everythink.

If you need more help hit me up with a PM I will do my best to help you buddy.
 
Last edited:

skill1917

Active Member
Joined
Sep 14, 2015
Messages
40
Reaction score
27
Points
68
I am not sure what you trying to do. But if I get it right you can use iptables for that.
Code:
iptables -A FORWARD -i eth0 (interface) -p udp --dport 9990 -d x.x.x.x:9987 -j ACCEPT
almost got it right :p

Code:
iptables -t nat -A PREROUTING -i eth0 (interface) -p udp --dport 9990 -j DNAT --to x.x.x.x:9987
 

BlackNetwork

Member
Joined
May 23, 2017
Messages
16
Reaction score
1
Points
35
Code:
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
sysctl -p
iptables -t nat -A PREROUTING -p udp --dport 9987 -j DNAT --to-destination UNPORTIP:9987
iptables -t nat -A POSTROUTING -j MASQUERADE
 

chuga2

Restricted
Joined
Jul 16, 2016
Messages
175
Reaction score
42
Points
61
how can redirect the server to another server but for port query 10011 ??
 

Wicked

WickeD CSA
Joined
May 1, 2016
Messages
50
Reaction score
5
Points
98
Code:
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
sysctl -p
iptables -t nat -A PREROUTING -p udp --dport 9987 -j DNAT --to-destination UNPORTIP:9987
iptables -t nat -A POSTROUTING -j MASQUERADE
Can i redirect and quey teamspeak3 port 10011 ? How ? Like if i add the ip wich i do the redirect in an site that tracks servers will read my server with the redirect ip ?
 
Top