LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2005, 12:26 AM   #16
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198

Ahah ... perhaps you should draw a picture? This is what I get from your discription:
Code:
                    /---------[server]------[ethernet switch]------LAN
[modem]-------[splitter]
                    \---------[router]-------?
I would have expected:
Code:
[modem]-----[router]-----[server]-----[switch]-----LAN
puts the server in a DMZ?

I'm starting to wonder if I'm being too simplistic? If you use the server box just for experimenting with software routing and learning about bastion hosts, IP forwarding and all that, then you may only be using the server or the router at any one time:
Code:
                       /x-----[server]---etc
[modem]-----[splitter]/
                        o-----[router]---etc
(i.e. only one of server or router connected to modem at any time.)

Last edited by Simon Bridge; 09-28-2005 at 12:31 AM.
 
Old 09-28-2005, 09:21 AM   #17
meping
Member
 
Registered: Sep 2004
Posts: 73

Original Poster
Rep: Reputation: 15
/---------------[router]------------[network]
[modem]----[hub] |
\---------------[server]

I did it this way cause I had already built the network and I have other people on the network so I didn't want to be taking it down and up while I play around w/ the server.

Oh and I forgot to mention I managed to prefect remoting in, but I've encountered a problem where if I plug in the nic that connects server to router while I have the other server nic installed, Remoting in outside the network just times out?

was wondering if you had any idea why?
 
Old 09-28-2005, 09:32 PM   #18
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Well... the modem sends tcp/ip packets to the hub. The hub passes those packets to everyone it is connected to ... i.e. router and server.

If the router is connected to the server as well (i.e. the server is also on the LAN) then packets adressed to the server can arrive from two directions... from the LAN and from the external connection. The LAN packet will probably arrive just after the external one.

You may need to stop the router sending externally sourced packets to the server (the server gets these directly ... which is what you want) and stop the server sending external-directed packets to the router.

(You can probably do this with iptables on the router.)
 
Old 09-28-2005, 09:34 PM   #19
meping
Member
 
Registered: Sep 2004
Posts: 73

Original Poster
Rep: Reputation: 15
wow ok...Hum, ok Thanks for the info. I hope my router is complicated enough, its just a simple linksys home wireless-b router.

I was looking through my router config and I found options:
IPSec Pass Through
Multicast Pass Through
PPTP Pass Through
PPPoE Pass Through

these were all enabled, would that be what was causing the problem?

Last edited by meping; 09-28-2005 at 09:39 PM.
 
Old 09-28-2005, 11:07 PM   #20
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
(You can probably do this with iptables on the router.)

Sorry, my bad, I meant in the server.
If eth0 is from the hub/modem and eth1 is from the router (which is probably also an ethernet switch right?) then you want to drop packets coming in eth1 which are sourced from outside the network.

Of course, there is another way.
You could simplify your setup.

Just put the server on the LAN behind the router.

If it is a web server, requests for your webpage can be routed to it. You'll also be able to offer other services direct to the LAN. Bringing the server down won't interfere with the operation of the LAN in terms of internet sharing - just the services hosted by your server box will vanish.

You just won't be able to use it as a software router is all (Though you could hang that hub off the second nic, and so have an extra LAN all to yourself? Practise intranet routing that way?)

Code:
[modem]------[router]---------------(mylan1.net)
                            |
                        [server]
                            |
                     -----[hub]-----(mylan2.net)
This way - the router automatically sends packets for the server to the server and there's no conflicts. Packets from the internet destined for hostname@mylan2.net will also go to the server for routing. (Enable IP forwarding and let iptables do the routing... though you may have fun setting up the router.)

I think you'll find this easier to set up for what you want to do.

Last edited by Simon Bridge; 09-28-2005 at 11:09 PM.
 
Old 09-28-2005, 11:13 PM   #21
meping
Member
 
Registered: Sep 2004
Posts: 73

Original Poster
Rep: Reputation: 15
I thought about doing it that way, the problem for me is this is a test server so its constantly going up and down, and I don't want the people behind the router to lose contivity, which was specifically why I kept it outside router + I didn't want to do port forwarding on the router, I wanted to get everything behind the router locked down and then just have the sole server as the access in.
 
Old 09-29-2005, 12:44 AM   #22
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
1. Your existing LAN is modelled as mylan1.net and IP forwarding is what routers do.
2. You already have your internet connected to your LAN via the router.

So - noone on mylan1.net will lose connection when the server goes down Mylan2.net will be just for you to play with - i.e. optional.

The only real advantage to your existing set up is that, when the server is down, the LAN still gets it's internet via the router. (Which is most of the time.) Oh and I guess web pages can be presented direct to the web.

Still, it's your thing.
 
  


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
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
KRDC Remoting into Win Server 2003 - no keyboard b18b Linux - Software 2 12-07-2005 05:31 PM
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 4 11-10-2005 11:37 AM
remoting from windows to linux meping Linux - Software 3 09-23-2005 07:51 AM
Vnc only works linux to windows not windows to linux mbdayton Linux - Networking 2 04-16-2005 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 AM.

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