Blog Hosting, Server, Linux, Jaringan Komputer dan Internet 

Home Tutorial Port Porwarding Centos
formats

Port Porwarding Centos

Published on January 6, 2015, by in Tutorial.

Untuk melakukan port pordwarding di Centos gunakan perintah iptables.

Misalkan :

Port yang akan difordward = 8291

ip public = 103.242.101.101

ip lokal tujuan = 192.168.101.2

 

Gunakan perintah berikut :

# iptables -t nat -A PREROUTING -d 103.202.101.101 -p tcp –dport 8291 DNAT –to-destination 192.168.101.2:8291

simpan dengan perintah :

# iptables save

 

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.