There is no way to do it automatically but,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
[URL=ts3server://x.x.x.?port=9987]x.x.x.x:9987[/URL]
iptables -A FORWARD -i eth0 (interface) -p udp --dport 9990 -d x.x.x.x:9987 -j ACCEPT
sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 0
sysctl -p /etc/sysctl.conf
almost got it rightI 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
iptables -t nat -A PREROUTING -i eth0 (interface) -p udp --dport 9990 -j DNAT --to x.x.x.x:9987
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 ?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