Perintah Untuk NAT Di Linux

Posted in Networking on April 26st, 2008 | (131) Comments

Beberapa waktu yang lalu saya perlu untuk membuka akses ke CCTV yang berada di jaringan lokal agar dimungkinkan melihat CCTV melalui internet. Konfigurasi CCTV memungkinkan untuk mengeset port selain port 80. CCTV biasa diakses dengan http://192.xxx.xxx.xxx:80, atau melalui software berbasis jawa yang harus di-install di PC.

Untuk memberikan akses user dari luar jaringan (melalui internet), maka perlu dilakukan penerjemahan alamat network yang umum disebut sebagai NAT (Network Address Translation).

CCTV nantinya akan diakses melalui: http://cctv.mydomain.com:81 yang akan diterjemahkan menjadi http://192.xxx.xxx.xxx:80. Kenapa saya menggunakan 81 untuk port akses dari internet? Ini disebabkan port 80 sudah digunakan untuk web server.

Berikut perintah NAT untuk menyelesaikan masalah di atas:

# iptables -t nat -A PREROUTING -d YOUR_PUBLIC_IP/32 -p tcp -m tcp –dport 81 -j DNAT –to-destination YOUR_PRIVATE_IP:80

Catatan: ganti YOUR_IP_PUBLIC dengan IP Public Anda dan YOUR_PRIVATE_IP dengan IP Privat Anda.

Selanjutnya perintah tersebut bisa disimpan dengan perintah

# iptables -save

Saya tidak menyimpannya, tetapi perintah itu saya masukkan di-startup file karena alasan kepraktisan :D

CCTV Login Using FQDN

Comments:

131 Responses to “Perintah Untuk NAT Di Linux”


  1. CCTV nya dimana ??


  2. @ Ario Dipoyono
    Ada mas, di kantor :D


  3. pengunaan port pada perangkat DVR tersebut dapat di gunakan port apa saja yang tak terpakai dan kosong. pada beberapa kejadian yang saya gunakan sebaiknya mengunakan router untuk mengset port dan pada hardware DVR di sesuaikan dengan port yang sudah di set pada router


  4. @ dark
    Bisa juga dilakukan seperti itu. Karena kebetulan user di dalam jaringan sudah terbiasa dengan port-port itu, maka saya set saja dengan port yang sudah ada.
    Terima kasih sudah berkunjung.


  5. [...] Tetapi jika DVR Anda menggunakan IP lokal dan Anda mempunyai IP Publik (misalnya di router), Anda bisa melakukan routing sendiri. Caranya saya paparkan di sini. [...]


  6. Mas aku amau nanya nih
    kalo saya langganan di satu ISP trus saya pingin liat cctv rumah saya dari internet dimana aja bisa ga yaa, trus cara settingnya gimana,saya pake windows.trus sama ISP saya ,saya dikasih 1 IP publik yg dah dipake dikomputer saya.Mohon pencerahannya, terimakasih


  7. Mas Slamet,
    Belum dijelaskan mengenai perangkat CCTV-nya. Apakah langsung nyolok ke komputer, atau menggunakan DVR.
    Kalau langsung colok ke PC, berarti tidak perlu konfigurasi macam-macam karena PC-nya sudah menggunakan IP publik.
    Kalau menggunakan DVR, maka mas perlu melakukan NAT agar DVR bisa diakses dari luar.

    Semoga membantu.


  8. brosing aja di http://www.solosec.com


  9. Mas, kalo kita sebelumnya udah punya 1 akun publik dari spidi yang di gunakan untuk kepentingan internet di kantor. Bisakah ip tersebut dipakai untuk memantau cctv kantor tanpa internet di kantor mengalami gangguan.

    Terima kasih

    Arief:
    Mas Wendy, mas sudah memperoleh IP publik ya? Tentu saja bisa kok mas. Salah satu caranya dengan menggunakan NAT. Kalau terganggu secara koneksi tidak. Tetapi kalau terganggu secara bandwidth iya mas karena yang dilihat adalah gambar bergerak dan di-stream.


  10. saya punya CCTV ada DVR yg bisa diakses melalui internet. saya langganan speedy.Waktu pasang speedy dikasih IP modem speedy.
    Pertanyaan saya bagaimana cara setting CCTV dan DVR saya supaya bisa diakss melalui internet.

    terima kasih
    Hendra


  11. Testing coba gab


  12. penjelasan yang td sy baca di ataskan utk setting di NAT PC linux, lha kalo settingannya di NAT Windows XP gmn mas ??? please aku jg pingin pinter mas


  13. saya coba dlu gan thanks infonya…


  14. pengen bnyak hal yg harus w lakuin untuk bisa masang cctv ke internet


  15. Mengapa ada kebutuhan untuk menggunakan CCTV? Apakah karena pekerjaan Anda? atau hanya aktivitas pribadi? Saya ingin tahu cara kerjanya. Apakah itu benar-benar efektif. Silakan kirim lagi. Terima kasih.


  16. berapa biaya untuk pemasangannya.tanks


  17. saya sudah pasang cctv,tp belum terhubung ke komputer. klo saya mau lihat cctv dari bb,kan harus terhubung dgn internet. ada yg bisa bantu instalasinya? kirim ke email ct_k_rima@yahoo.com. thanx


  18. ccn2785xdnwdc5bwedsj4wsndb…

    [...]very handful of internet sites that come about to become in depth below, from our point of view are undoubtedly nicely really worth checking out[...]…


  19. xcn5bsn5bvtb7sdn5cnvbttecc…

    [...]one of our guests not too long ago suggested the following website[...]…


  20. Title…

    [...]check beneath, are some entirely unrelated web-sites to ours, having said that, they’re most trustworthy sources that we use[...]…


  21. Title…

    [...]please visit the websites we stick to, including this one, as it represents our picks in the web[...]…


  22. Title…

    [...]check below, are some absolutely unrelated web sites to ours, however, they may be most trustworthy sources that we use[...]…


  23. Title…

    [...]we prefer to honor several other internet sites on the internet, even though they aren’t linked to us, by linking to them. Underneath are some webpages really worth checking out[...]…


  24. Title…

    [...]Here is a great Blog You might Find Exciting that we Encourage You[...]…


  25. Title…

    [...]below you will find the link to some web pages that we think you’ll want to visit[...]…


  26. Title…

    [...]just beneath, are various entirely not related web-sites to ours, nevertheless, they may be surely really worth going over[...]…


  27. Title…

    [...]very handful of internet websites that occur to become comprehensive beneath, from our point of view are undoubtedly nicely worth checking out[...]…


  28. Title…

    [...]just beneath, are a lot of absolutely not connected web sites to ours, even so, they’re surely worth going over[...]…


  29. Title…

    [...]just beneath, are numerous completely not related web pages to ours, nevertheless, they are surely worth going over[...]…


  30. Title…

    [...]Here are some of the web pages we recommend for our visitors[...]…


  31. Title…

    [...]one of our visitors not too long ago recommended the following website[...]…


  32. Title…

    [...]below you will obtain the link to some websites that we believe you should visit[...]…


  33. Title…

    [...]we prefer to honor several other web websites on the internet, even when they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]…


  34. Title…

    [...]always a large fan of linking to bloggers that I like but don’t get quite a bit of link appreciate from[...]…


  35. Title…

    [...]Here is an excellent Blog You might Obtain Exciting that we Encourage You[...]…


  36. Title…

    [...]here are some hyperlinks to websites that we link to since we think they may be really worth visiting[...]…


  37. Title…

    [...]the time to study or take a look at the content or web pages we’ve linked to below the[...]…


  38. Title…

    [...]Here is a good Weblog You might Discover Fascinating that we Encourage You[...]…


  39. Title…

    [...]Here is an excellent Weblog You might Obtain Fascinating that we Encourage You[...]…


  40. Title…

    [...]Here are several of the websites we advocate for our visitors[...]…


  41. Title…

    [...]Every the moment in a whilst we opt for blogs that we study. Listed beneath would be the most recent sites that we decide on [...]…


  42. Title…

    [...]please check out the web pages we stick to, including this 1, as it represents our picks through the web[...]…


  43. Title…

    [...]we came across a cool site that you could possibly take pleasure in. Take a look when you want[...]…


  44. Title…

    [...]Wonderful story, reckoned we could combine a couple of unrelated data, nonetheless really worth taking a appear, whoa did one particular study about Mid East has got additional problerms at the same time [...]…


  45. Title…

    [...]here are some links to websites that we link to because we believe they are really worth visiting[...]…


  46. Title…

    [...]although internet websites we backlink to beneath are considerably not associated to ours, we really feel they are truly really worth a go by way of, so possess a look[...]…


  47. Title…

    [...]we prefer to honor many other world wide web internet sites on the net, even when they aren’t linked to us, by linking to them. Below are some webpages really worth checking out[...]…


  48. Title…

    [...]please pay a visit to the sites we follow, which includes this one particular, as it represents our picks in the web[...]…


  49. Title…

    [...]please stop by the sites we comply with, such as this 1, because it represents our picks in the web[...]…


  50. Title…

    [...]just beneath, are various totally not associated web pages to ours, even so, they’re surely worth going over[...]…


  51. Title…

    [...]although web-sites we backlink to beneath are considerably not related to ours, we really feel they are actually really worth a go through, so possess a look[...]…


  52. Title…

    [...]Sites of interest we’ve a link to[...]…


  53. Title…

    [...]usually posts some really fascinating stuff like this. If you are new to this site[...]…


  54. Title…

    [...]Sites of interest we’ve a link to[...]…


  55. Title…

    [...]check beneath, are some absolutely unrelated internet websites to ours, having said that, they are most trustworthy sources that we use[...]…


  56. Title…

    [...]below you will discover the link to some web-sites that we believe it is best to visit[...]…


  57. Title…

    [...]just beneath, are numerous totally not connected sites to ours, having said that, they are surely worth going over[...]…


  58. Title…

    [...]Sites of interest we’ve a link to[...]…


  59. Title…

    [...]that would be the finish of this post. Here you’ll discover some websites that we feel you will enjoy, just click the hyperlinks over[...]…


  60. Title…

    [...]please check out the sites we stick to, such as this one, because it represents our picks through the web[...]…


  61. Title…

    [...]below you will find the link to some websites that we think it is best to visit[...]…


  62. Title…

    [...]very handful of websites that transpire to be detailed beneath, from our point of view are undoubtedly nicely really worth checking out[...]…


  63. Title…

    [...]below you’ll find the link to some web sites that we feel you need to visit[...]…


  64. Title…

    [...]Here are several of the internet sites we advise for our visitors[...]…


  65. Title…

    [...]we prefer to honor many other online websites around the internet, even when they aren’t linked to us, by linking to them. Underneath are some webpages worth checking out[...]…


  66. Title…

    [...]Wonderful story, reckoned we could combine several unrelated data, nevertheless seriously really worth taking a look, whoa did one particular study about Mid East has got a lot more problerms too [...]…


  67. Title…

    [...]please go to the internet sites we adhere to, including this one, because it represents our picks in the web[...]…


  68. Title…

    [...]Sites of interest we have a link to[...]…


  69. Title…

    [...]Sites of interest we have a link to[...]…


  70. Title…

    [...]just beneath, are a lot of completely not connected internet sites to ours, nevertheless, they may be surely really worth going over[...]…


  71. Title…

    [...]that is the finish of this report. Here you’ll uncover some web-sites that we believe you’ll appreciate, just click the hyperlinks over[...]…


  72. Title…

    [...]Here is a superb Blog You may Uncover Intriguing that we Encourage You[...]…


  73. Title…

    [...]always a large fan of linking to bloggers that I appreciate but really don’t get a whole lot of link enjoy from[...]…


  74. Title…

    [...]the time to read or go to the subject material or sites we’ve linked to beneath the[...]…


  75. Title…

    [...]one of our guests not too long ago suggested the following website[...]…


  76. Title…

    [...]always a big fan of linking to bloggers that I appreciate but really don’t get lots of link love from[...]…


  77. Title…

    [...]Here are some of the web-sites we suggest for our visitors[...]…


  78. Title…

    [...]always a huge fan of linking to bloggers that I adore but do not get quite a bit of link adore from[...]…


  79. Title…

    [...]below you’ll find the link to some websites that we believe you need to visit[...]…


  80. Title…

    [...]check beneath, are some entirely unrelated internet sites to ours, nevertheless, they’re most trustworthy sources that we use[...]…


  81. Title…

    [...]The facts talked about in the post are a number of the most effective obtainable [...]…


  82. Title…

    [...]usually posts some really fascinating stuff like this. If you are new to this site[...]…


  83. Title…

    [...]Sites of interest we have a link to[...]…


  84. Title…

    [...]usually posts some really interesting stuff like this. If you’re new to this site[...]…


  85. Title…

    [...]Here is an excellent Blog You might Discover Fascinating that we Encourage You[...]…


  86. Title…

    [...]Wonderful story, reckoned we could combine several unrelated data, nonetheless really really worth taking a search, whoa did 1 understand about Mid East has got far more problerms at the same time [...]…


  87. Title…

    [...]that is the finish of this post. Here you’ll discover some internet sites that we assume you will enjoy, just click the hyperlinks over[...]…


  88. Title…

    [...]Here is a superb Weblog You might Discover Exciting that we Encourage You[...]…


  89. Title…

    [...]the time to read or go to the subject material or sites we’ve linked to beneath the[...]…


  90. Title…

    [...]just beneath, are various absolutely not related websites to ours, even so, they are certainly worth going over[...]…


  91. Title…

    [...]Wonderful story, reckoned we could combine a number of unrelated data, nonetheless really really worth taking a appear, whoa did one master about Mid East has got much more problerms too [...]…


  92. Title…

    [...]The information and facts talked about in the report are several of the best available [...]…


  93. Title…

    [...]Here is a superb Weblog You may Come across Fascinating that we Encourage You[...]…


  94. Title…

    [...]below you’ll discover the link to some web sites that we feel you must visit[...]…


  95. Title…

    [...]The facts mentioned inside the post are some of the most beneficial out there [...]…


  96. Title…

    [...]one of our guests not too long ago advised the following website[...]…


  97. Title…

    [...]although internet sites we backlink to beneath are considerably not related to ours, we feel they are actually worth a go by way of, so possess a look[...]…


  98. Google…

    Always a significant fan of linking to bloggers that I adore but do not get a great deal of link enjoy from….


  99. Title…

    [...]always a significant fan of linking to bloggers that I adore but don’t get a great deal of link appreciate from[...]…


  100. Title…

    [...]always a large fan of linking to bloggers that I like but don’t get quite a bit of link appreciate from[...]…


  101. Title…

    [...]Wonderful story, reckoned we could combine several unrelated information, nevertheless definitely really worth taking a search, whoa did one particular master about Mid East has got far more problerms at the same time [...]…


  102. Title…

    [...]please stop by the internet sites we follow, like this 1, because it represents our picks through the web[...]…


  103. Title…

    [...]Every after inside a even though we pick out blogs that we read. Listed below would be the newest web-sites that we decide on [...]…


  104. Title…

    [...]Here is a superb Weblog You may Discover Interesting that we Encourage You[...]…


  105. Title…

    [...]please stop by the web pages we comply with, such as this a single, because it represents our picks through the web[...]…


  106. Title…

    [...]we like to honor many other web sites around the web, even if they aren’t linked to us, by linking to them. Under are some webpages really worth checking out[...]…


  107. Title…

    [...]The data mentioned in the report are some of the ideal readily available [...]…


  108. Title…

    [...]Wonderful story, reckoned we could combine some unrelated information, nevertheless truly worth taking a appear, whoa did one master about Mid East has got more problerms as well [...]…


  109. community…

    [...]Sites of interest we’ve a link to[...]…


  110. Title…

    [...]usually posts some incredibly interesting stuff like this. If you are new to this site[...]…


  111. Title…

    [...]Every when in a when we opt for blogs that we read. Listed below are the latest sites that we opt for [...]…


  112. amber color codes…

    [...]Here are a few of the web pages we advise for our visitors[...]…


  113. van work…

    [...]Here is a good Blog You may Find Exciting that we Encourage You[...]…


  114. motorcycles repair in Jacksonville fl…

    [...]below you will locate the link to some web pages that we assume it is best to visit[...]…


  115. Title…

    [...]always a major fan of linking to bloggers that I enjoy but do not get a whole lot of link love from[...]…


  116. read here…

    [...]below you will discover the link to some websites that we assume you ought to visit[...]…


  117. paintless dent removal training course…

    [...]although internet sites we backlink to beneath are considerably not connected to ours, we feel they are actually really worth a go as a result of, so have a look[...]…


  118. Archery and crossbows…

    [...]just beneath, are several entirely not associated internet sites to ours, even so, they are surely worth going over[...]…


  119. kemal akar facebook…

    [...]here are some hyperlinks to sites that we link to simply because we assume they may be worth visiting[...]…


  120. wax pen…

    [...]The information and facts talked about within the report are several of the ideal obtainable [...]…


  121. Title…

    [...]the time to read or go to the subject material or sites we’ve linked to beneath the[...]…


  122. 폰섹…

    [...]Wonderful story, reckoned we could combine a number of unrelated data, nonetheless seriously really worth taking a search, whoa did a single understand about Mid East has got extra problerms too [...]…


  123. sohbet hatları…

    [...]that could be the end of this report. Right here you will find some web sites that we feel you will appreciate, just click the hyperlinks over[...]…


  124. Title…

    [...]always a massive fan of linking to bloggers that I appreciate but do not get a whole lot of link really like from[...]…


  125. Title…

    [...]very few websites that happen to become comprehensive beneath, from our point of view are undoubtedly well worth checking out[...]…


  126. Title…

    [...]just beneath, are quite a few completely not associated web sites to ours, nevertheless, they’re surely worth going over[...]…


  127. Title…

    [...]Here are some of the internet sites we recommend for our visitors[...]…


  128. Title…

    [...]one of our guests just lately encouraged the following website[...]…


  129. Title…

    [...]very handful of internet websites that occur to be in depth beneath, from our point of view are undoubtedly properly really worth checking out[...]…


  130. Title…

    [...]please go to the sites we adhere to, which includes this one, as it represents our picks in the web[...]…


  131. Title…

    [...]the time to study or visit the content material or sites we’ve linked to below the[...]…

Leave a Reply

You must be logged in to post a comment.

RSS