Home · News · Articles · Forum · Downloads · Search Your IP: 38.103.63.58 · Today: Tuesday, January 06, 2009
Main Menu
Home
News
Articles
- General
- Common Software
- Tips & Tricks
- Networking
- Multimedia
- Operation Systems
- Hardware
- Programming
- Security
- Configs
- CMS
Forum
Downloads
Gallery
Search
FAQ
Links
Ping us
Top 10 Article Posters
empty 37
nemo 3
linuxGuru 1
scary 1
tashak 1
siluni 1
Poll
What OS are you using?

Linux

*BSD

Solaris

Mac OS

Windows

Other

You must login to vote.
Howto increase the TTL value with iptables
To share the internet connection we have to make sure that the TTL value is bigger then 1. In case that the TTL is 1 we will have to increase it. This article is going to describe how to increase the TTL so the other machines behind your router will be able to use internet.

Example:
Internet connection device: eth0
Internal network device: eth1

Here is a simple script that is doing it:

Code:


You can save this script in a file located for example at /etc/ and then set it to be executed everytime when the system boots.
For example in Slackware this can be done by using the command chmod +x /etc/script-name (this is to make it executable) and then putting the full path to it in /etc/rc.d/rc.local.

The other method to add it is to include it in the default script for the firewall as it is in Fedora Core: /etc/sysconfig/iptables
The code you need to put in this script is:

Code:


Once this is added you can save the file and execute the command: service iptables restart (working on Fedora Core. Most probably won't work with other distributions and you will need to find the starting script for iptables in your distribution and execute it with the restart option.)

P.S. I'll wait for your comments to improve the article.

Good luck!
Comments
afe on March 28 2008 10:38:30
thx m8
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Search

Enter words:


Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online
Registered: 56
Newest: Grantt721
Random Gallery Image
Gentoo
Gentoo
Screenshots
Friends
DJs Place
Fresh Flash Games
Free Wallpapers
PHP Scripts
Levski
Flash Games
HouseFreaks.Net
Improvements
Bookmark and Share
News Feeds
Article Feeds
Forum Feeds
Spam Poison
Valid CSS!
OSGuides.net 2007 - 2008 Creative Commons License.