SA-MP Forums Archive
Port redirect iptables [Linux] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Port redirect iptables [Linux] (/showthread.php?tid=538235)



Port redirect iptables [Linux] - connork - 20.09.2014

Hi, I am trying to forward port 7778 to 7777, the query works normally, but the game does not connect.

I'm using:

Код:
iptables -t nat -A PREROUTING -p udp --dport 7778 -j REDIRECT --to-port 7777
How to do it?


Re: Port redirect iptables [Linux] - ReD_DeVi - 20.09.2014

What operating system do you use


Re: Port redirect iptables [Linux] - ranme15 - 20.09.2014

Did you save it?
Код:
iptables-save



Re: Port redirect iptables [Linux] - connork - 20.09.2014

Ubuntu 12.04,

yep, its save.

The query is on, but don't connect "retry..."


Re: Port redirect iptables [Linux] - ReD_DeVi - 20.09.2014

And sorry I did not notice that you have said Linux and what do you want to do actually


Re: Port redirect iptables [Linux] - ranme15 - 20.09.2014

Quote:
Originally Posted by connork
Посмотреть сообщение
Ubuntu 12.04,

yep, its save.

The query is on, but don't connect "retry..."
Did the server work well before the reforwarding? maybe this is not the problem.


Re: Port redirect iptables [Linux] - connork - 20.09.2014

I want run the server on port 7777 and connect by 7778, forwarding... you can test this if you want:

cv.tssabr.org:7778 ~> Query on, but don't connect to the game.
cv.tssabr.org:7777 ~> Server run on port 7777 in "server.cfg"


Re: Port redirect iptables [Linux] - ReD_DeVi - 20.09.2014

Do query 0


Re: Port redirect iptables [Linux] - connork - 20.09.2014

I want keep query on.


Re: Port redirect iptables [Linux] - rymax99 - 21.09.2014

Quote:
Originally Posted by ReD_DeVi
Посмотреть сообщение
And sorry I did not notice that you have said Linux and what do you want to do actually
You obviously have no idea what you're talking about either way, so just don't reply.