Saya akan membagikan tutorial sharing internet di linux dengan menggunakan iptables. Media yang saya gunakan kali ini adalah kabel lan. Langsung aja ke TKP.
interface yang akan digunakan untuk sharing internet adalah eth0 (kabel lan)
kom1 = slack + koneksi internet dengan interface ppp0
kom2 = backtrack
–setting pada kom1 :
#ifconfig eth0 192.168.1.1
merubah ip pada interface eth0
#route
cek routing untuk eth0, biasanya langsung ada routing untuk eth1 192.168.1.0
#nano /etc/resolv.conf
disana terlihat dns yang dipakaimisalkan : nameserver 8.8.8.8 (save di otak)
#iiptables -t nat -A POSTROUTING -s 192.168.0.1/16 -j MASQUERADE
Inti dari sharing koneksi, setiap akses dari ip 192.168.1.0/24 (opsi -s) akan dilakukan masquerading. Pada beberapa system ada yang menggunakan SNAT. Sharing koneksi dengan SNAT umumnya digunakan untuk koneksi dengan IP Publik statis, jika menggunakan IP dinamis (dial – up) Masquerading adalah pilihan tepat.
#iptables -t nat -A POSTROUTING -s 192.168.1.1/24
mengaktifkan ip forward, dalam hal ini ip 1.1 masuk, karena doi sebai route default gateway
#echo 1 > /proc/sys/net/ipv4/ip_forward
merubah nilai ip_forward menjadi 1 (true), tujuannya mengaktifkan penggunaan ip versi 4 (ipv4)
–setting pada komp2 :
#ifconfig eth0 192.168.1.2
merubah ip biar samaan gtu depannya
#route add default gw 192.168.1.1
menjadikan komp1 default gatwaynya
#nano /etc/resolv.conf
tambahkan dnsnya, samakan dengan komp1
#ping google.com
test koneksi
Catatan : kalo windows yang jadi komputer 2 nya tinggal di edit di network connectionnya samain dnsnya dan setting ipnya sendiri.
Cukup sekian dan trimakasih.
Can you message me with some hints about how you made your site look this cool , I would be thankful.
sorry I’m very busy, I’m just looking for what I wanted
Re: Whoever produced the statement that this was a good web site really needs to have their brain analyzed.
It appears to me that this web site doesnt download on a Motorola Droid. Are other folks getting the same issue? I like this web site and dont want to have to miss it when Im gone from my computer.
When I originally commented I clicked the Notify me when new comments are added checkbox and currently every time a comment is added I receive four emails with the same comment.
An insightful post there mate . Thanks for posting !
Although I genuinely like this post, I believe there was an spelling error shut towards the end of the third sentence.
I am just a beginner, i am so sory
It appears to me that this web site doesnt load in a Motorola Droid. Are other folks getting the same problem? I like this blog and dont want to have to skip it any time Im away from my computer.
I adore that site layout . How was it made. Its really cool!
I adore the site layout ! How was it made. It is very good!
Mate! This website is cool. How do you make it look like this ?
Whenever I originally left a comment I clicked on the Notify me when new comments are added checkbox and currently every time a remark is added I receive 4 emails with the exact same comment.
The look for your blog is a bit off in Epiphany. Even So I like your site. I may need to use a normal browser just to enjoy it.
A lot of of the comments on this blog dont make sense.
Have you given any kind of consideration at all with translating your main webpage into German? I know a couple of of translaters here which would help you do it for free if you wanna make contact with me.
The look for the website is a tad off in Epiphany. Nevertheless I like your blog. I might have to install a normal browser just to enjoy it.
After I open up your Feed it seems to be a lot of garbage, is the problem on my part?
Is it alright to place part of this in my weblog if I post a reference to this web site?
Re: Whomever created the statement that this was a good internet site actually needs to have their brain analyzed.
If you could email me with some hints about how you made your site look this good, I would be thankful!
This is a excellent blog, could you be interested in working on an interview regarding just how you created it? If so e-mail me and my friends!
Jesus Christ theres a lot of spammy comments on this website. Have you ever before thought about trying to remove them or putting in a extension?
no because this is an open website
Just to let you know your web-site appears a little bit strange on Firefox on my netbook using Linux .
Im getting a small issue. I cant get my reader to pick up your rss feed, Im using yahoo reader by the way.
Weird , your post shows up with a dark color to it, what color is the primary color on your site?
Cool post . Thank you for, visiting this blog mate. I will email you some time. I did not know that.
The look for your weblog is a little bit off in Epiphany. Even So I like your website. I might have to install a normal web browser just to enjoy it.
Could you email me with some hints & tips about how you made your blog look this cool , I would be appreciative!
I was basically wanting to know if you ever thought of switching the layout of your web site? Its well written; I really like what you have got to say. But maybe you can include a a bit more in the way of written content so people might connect to it better. Youve got an awful lot of wording for only having one or two photographs. Maybe you could space it out better?
As soon as I initially commented I clicked on the Notify me when new comments are added checkbox and now each time a comment is added I get four emails with the exact same comment.
Odd , your posting turns up with a black color to it, what color is the primary color on your webpage?
If you dont mind, where do you host your web page? I am hunting for a good quality host and your weblog appears to be extremely fast and up just about all the time
How come you do not have your website viewable in mobile format? Can not view anything in my Droid.
Do youve a spam concern on this site; I also am a blogger, and I was asking yourself your scenario; weve created some great strategies and we are searching to trade solutions with other individuals, be certain to shoot me an e-mail if interested.
Even though I genuinely like this post, I think there was an spelling error shut towards the finish from the 3rd sentence.
Just to let you know your site looks a little bit different in Safari on my pc with Linux .
After I open up your Feed it appears to be to be a ton of nonsense, is the issue on my side?
Have you given any thought at all with converting your current site in to French? I know a couple of translaters right here that will would help you do it for no cost if you want to make contact with me personally.
Most of the commentary on this particular weblog dont make sense.
Have you given any kind of thought at all with converting your blog into Spanish? I know a small number of translaters here that will would certainly help you do it for free if you want to make contact with me personally.
Have you considered adding several social bookmarking buttons to these blogs. At the very least for facebook.
Jesus Christ theres lots of spammy comments on this web page. Have you actually thought about attempting to get rid of them or putting in a plugin?
This blog site is very good. How can I make one like this !?
It seems to me that this website doesnt load on a Motorola Droid. Are other folks having the same problem? I like this site and dont want to have to skip it when Im away from my computer.
I Am Going To have to return again whenever my course load lets up – nevertheless I am getting your Feed so i can go through your blog offline. Cheers.
I believe one of your current ads triggered my internet browser to resize, you might well want to get that on your blacklist.
I like the blog site layout ! How did you make it. Its rather good!
It seems to me that this web site doesnt load up in a Motorola Droid. Are other folks getting the same issue? I enjoy this blog and dont want to have to skip it any time Im gone from my computer.
Odd , this post shows up with a black color to it, what color is the primary color on your web site?
Most of the responses on this particular web site dont make sense.
Have you considered adding several social bookmarking buttons to these sites. At least for facebook.
I feel one of your current ads caused my web browser to resize, you may well need to get that on your blacklist.
This is the right webpage for everyone who wishes to find out about this topic. You know so much its almost hard to argue with you (not that I actually would want to…HaHa). You certainly put a brand new spin on a subject that’s been written about for ages. Excellent stuff, just great!
Pretty! This has been a really wonderful post. Thanks for supplying these details.
Excellent blog post. I definitely love this website. Continue the good work!
Hi! I know this is kinda off topic but I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog article or vice-versa? My blog goes over a lot of the same topics as yours and I feel we could greatly benefit from each other. If you might be interested feel free to send me an e-mail. I look forward to hearing from you! Great blog by the way!
Hi to all, the contents existing at this web site are truly amazing for people
experience, well, keep up the good work fellows. pusatbesibaja.com
I like the valuable info you supply in your articles.
I will bookmark your blog and check once more right
here regularly. I’m rather certain I will be told plenty of new stuff proper here!
Good luck for the next!