LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-29-2011, 10:28 AM   #1
shridhar005
Member
 
Registered: Jul 2008
Posts: 90

Rep: Reputation: 17
configure linux as router on leased line


Hello friends,

Currently Linux server is configured as router on the broadband connection.

Now there is a leased line. This is where your help is needed.

With the broadband connection, the cable from the ISP is connected to the router which is on the bridge mode and from it is connected to the firewall server(maqsquerading enabled).

Now With leased line, there is no router. How to tackle this issue?

Do I need the router and then connect it to the firewall server just as in previous case?
Or something else.

googled about this but nothing helpful came out.

Thanks is advance.
 
Old 11-29-2011, 03:06 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
What type of connection are you provided with? Ethernet? Raw twisted pair?
 
0 members found this post helpful.
Old 12-01-2011, 04:46 AM   #3
shridhar005
Member
 
Registered: Jul 2008
Posts: 90

Original Poster
Rep: Reputation: 17
Thank you for reply.

The broadband is coaxial connection.It goes in to router/modem from ISP which has been set on bridged mode.
Routers output is then input to NAT-server.

The problem/doubt is, Now in order to connect through leased line
1) do i need router in between ISP and NAT server?
2) do I need switch, in which the ISP connection will input and from switch, one output cable will go to NAT server.
3) Or any other.
 
Old 12-01-2011, 09:46 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
What is this NAT server? If it is behaving as a router, then no new router should be needed. This NAT server would be configured according to the ISP directions. It may be able to get that configuration from DHCP.

Between the NAT server and the ISP modem, no switch is needed unless you have a reason to connect something that bypasses the NAT server, or want to tap in and monitor what is going on (for diagnostic or forensic reasons). This assumes the NAT server is configured and operating in a way suitable to serve the rest of the network. I assume this is where all your translate, masquerade, and filtering rules will be.

Does the NAT server have 2 or more ethernet ports, or just 1?
 
Old 12-01-2011, 12:21 PM   #5
hvulin
LQ Newbie
 
Registered: Sep 2009
Location: Velika Gorica, Croatia
Distribution: Debian
Posts: 15

Rep: Reputation: 0
you shouldn't need anything but you will need to know how the other side is configured (do you need pppoe or something like it, or you just put default route to their gateway on the other side)
 
Old 12-12-2011, 07:48 AM   #6
shridhar005
Member
 
Registered: Jul 2008
Posts: 90

Original Poster
Rep: Reputation: 17
Lightbulb Solved

Thank you, all of you for your comments and support.

The issue is solved.
The masquerading was needed to be done properly. And that did the trick.

Some observation may come handy for anyone:
1) while on broadband you "may" or may not need modem but on the leased line there is no need of the modem at all.


I set the iptable rules accordingly for the table nat and chain POSTROUTING and then for chain FORWARD.
There are few things which anyone should look for while settng those MASQUERADING rules.
 
  


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
connecting leased line to linux kjebas Linux - Networking 2 12-13-2008 08:01 PM
[SOLVED] how to configure 2 leased line connection, routes procfs Linux - Networking 2 08-04-2008 11:55 PM
Windows client dialing Linux Server thro' dialup/leased line pushpa_np Linux - Software 1 03-02-2006 10:24 PM
Need help to configure Leased Line Server sachin969 Linux - Networking 2 10-18-2002 03:04 AM
{HELP} Configuring a Leased Line Server sachin969 Linux - General 0 09-17-2002 03:13 AM

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

All times are GMT -5. The time now is 09:03 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