Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Route external IP through the ISP

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-28-2009   #1 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 4
Route external IP through the ISP

I have DSL connection in eth0. For whatever reason, I want to communicate with my own machine routing the traffic as a non-local traffic.

But when I use my internet IP, something happen and the connection is done local (like via localhost).

I've tried to change route without look. I've bring down "lo", and then my external IP just didn't work, while others internet IPs works.

How can I accomplish that?

Thanks,

Adriano
asfernandes is offline  


Reply With Quote
Old 06-30-2009   #2 (permalink)
Linux Enthusiast
 
Join Date: Dec 2004
Posts: 635
What are you using to attempt a remote connection? What distro are you using?
gtmtnbiker98 is offline   Reply With Quote
Old 06-30-2009   #3 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 4
Quote:
Originally Posted by gtmtnbiker98 View Post
What are you using to attempt a remote connection? What distro are you using?
I used netcat to listen and to connect. I'm using Ubuntu 9.04.
asfernandes is offline   Reply With Quote
Old 07-01-2009   #4 (permalink)
Linux Enthusiast
 
Join Date: Dec 2004
Posts: 635
Okay, sounds to me like your routing tables maybe the issue and/or (more likely) the appropriate protocols have not been properly configured in IP Tables. Have you allowed the protocols and the proper routes from the public IP to the internal IP? As I understand your OP, you are seeking to communicate to your Linux box remotely via public IP that is directly connected to your Linux box via a DSL modem, correct? If so, then your firewall must be configured to allow the necessary ports and protocols to communicate to either localhost and/or a private IP. Hope this clears the mud.
gtmtnbiker98 is offline   Reply With Quote
Old 07-01-2009   #5 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 4
Quote:
Originally Posted by gtmtnbiker98 View Post
Okay, sounds to me like your routing tables maybe the issue and/or (more likely) the appropriate protocols have not been properly configured in IP Tables. Have you allowed the protocols and the proper routes from the public IP to the internal IP? As I understand your OP, you are seeking to communicate to your Linux box remotely via public IP that is directly connected to your Linux box via a DSL modem, correct? If so, then your firewall must be configured to allow the necessary ports and protocols to communicate to either localhost and/or a private IP. Hope this clears the mud.
I do want to communicate with my machine, from the same machine, but through the internet. This would be for testing purposes.

I don't see how can't it be the firewall or routes. I've tried all sort of route changes, and don't see how iptables could handle the "problem". The ports are already opened for in/out traffic.

I just want my public IP (with a DSL modem) destination traffic to go to my ISP and assume it route. But some shortcut is taken on my machine.
asfernandes is offline   Reply With Quote
Old 07-01-2009   #6 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
You say testing is what you want this for but what are you trying to test? What are you trying top prove?
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 07-01-2009   #7 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 4
Quote:
Originally Posted by Lazydog View Post
You say testing is what you want this for but what are you trying to test? What are you trying top prove?
Testing speed/latency developing a software with a new protocol. I wan't to see real speed/latency impact, and not have the bytes transfering very fast locally.
asfernandes is offline   Reply With Quote
Old 07-02-2009   #8 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Quote:
Originally Posted by asfernandes View Post
I wan't to see real speed/latency impact
You are not going to see this without having another box on the network to send the traffic to. Speed and Latency have more to do with then just your connection to your ISP. a lot of things will effect the numbers here.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 12:37 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2