Uncategories

iptables

List:

sudo iptables-save

Add:

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 3000 -j DNAT --to-destination 10.205.48.65:3000

Save:

sudo netfilter-persistent save

Delete/Remove:

sudo iptables -t nat -D PREROUTING -i eth0 -p tcp -m tcp --dport 3000 -j DNAT --to-destination 10.205.48.65:3000
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s