LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2005, 03:45 PM   #1
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
[solved] IP forwarding


Okay, so I've got a handfull of questions on my mind, so here goes nothing:

1. Is it possible to disallow a LAN-user to forward his/her internet connection to someone else?

2. If 1. is yes, how can it be done?

3. If 1. is yes, how can it be bypassed? So far, the only solution seems to be a transparent proxy server (squid).

4. But what about the other ports (DC++, MSN, Y!), how can thay be "forwarded" and still pass through the firewall?

5. Am I asking too much?

Last edited by eqxro; 03-14-2005 at 12:24 PM.
 
Old 03-14-2005, 02:17 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Some answers here: http://www.linuxquestions.org/questi...hreadid=280516
Not too much for this morning .
 
Old 03-14-2005, 02:41 AM   #3
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Original Poster
Rep: Reputation: 30
Thanx for the help, I read the posts and it looks like the ttl thingie might be the right way, as I think that's the way my ISP is blocking my IP forwarding. I've posted here my problem, and also here. From the last post you can see the TTL go from 127 (send) to 1 (reply) then 64 (error). I must admit I didn't google yet, so how can I increase the ttl when it gets on the router? Will this break things?

[edit]Just googled and it seems this is the case... Found something like min-ttl but no way to set it... [/edit]

Last edited by eqxro; 03-14-2005 at 02:50 AM.
 
Old 03-14-2005, 06:02 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
I don't know, but iptables can do LOTS of things. Perhaps search this way?
 
Old 03-14-2005, 06:11 AM   #5
eqxro
Member
 
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Original Poster
Rep: Reputation: 30
I found something regarding ip tables, they say this should change the TTL:

iptables -t mangle -A PREROUTING -i eth1 -j TTL --ttl-set 64

only prob is it bombs out, saying chain/action invalid or something like that. It seems my kernel is not TTL mangle-patched.

[edit] I have the kernel patched and the ip forwarding automagically works Thanks 4 your help Linux.tar.gz

The patch is patch-o-matic-ng, the TTL part only.[/edit]

Last edited by eqxro; 03-14-2005 at 06:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
IP Forwarding Dhax Linux - Networking 2 03-20-2004 10:13 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration