PDA

View Full Version : [all variants] How to make iptables remember/save stuff?


Starlight
April 25th, 2008, 11:37 AM
Hi! I don't really know much about iptables, but there's one game (Ragnarok Online) which needs a specific iptables rule to be added to make it connect to its server properly... here's the command I type in the terminal to add it:

sudo iptables -t nat -A OUTPUT -d (some IP address here) -j DNAT --to-destination (another IP address here)

After I do it, the game has no problems connecting with the server. But I need to do that every time after I reboot the computer. Is there some way to make iptables save it, so that it always remebers it?

Monicker
April 25th, 2008, 11:45 AM
iptables-save

https://help.ubuntu.com/community/IptablesHowTo

Starlight
April 25th, 2008, 12:00 PM
Thank you! :)

piousp
May 6th, 2008, 11:09 PM
sudo iptables -t nat -A OUTPUT -d (some IP address here) -j DNAT --to-destination (another IP address here)

By (some IP address here) you mean your IP add?

and by (another IP address here) you the server IP add?

Anyway, i'm gonna try it out that way to see if it works.