LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2008, 01:52 PM   #1
claybv
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Rep: Reputation: 0
DSL and webserver


I'm working on new project from My house which has DSL. DSL modem/router/bridge.Ive changed LAN settings and port settings.can see modem and My FC8 server,but cant see outside or internet. reset modem to square one and internet works. anyone that can help explain or give some steps with the bridging. I'm not use to DSL. Mostly T1 or larger and usually dont deal with router side at work.
Modem is Zhone-Paradyne 6381-A3-200 ADSL2+ /R Bridge/Router.
Eth0=My network
Eth2= ISP modem side

[root@www ~]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:40:F4:5D:48:10
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:f4ff:fe5d:4810/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:16984 (16.5 KiB)
Interrupt:11 Base address:0x8800

eth2 Link encap:Ethernet HWaddr 00:02:41:00:45:76
inet addr:192.168.41.125 Bcast:192.168.41.255 Mask:255.255.255.0
inet6 addr: fe80::202:41ff:fe00:4576/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:276 errors:0 dropped:0 overruns:0 frame:0
TX packets:329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:172115 (168.0 KiB) TX bytes:36991 (36.1 KiB)
Interrupt:9 Base address:0x6c00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5096 errors:0 dropped:0 overruns:0 frame:0
TX packets:5096 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5454770 (5.2 MiB) TX bytes:5454770 (5.2 MiB)

[root@www ~]#

From outside internet or DYNDNS,com:

An attempted connection to 207.144.135.22:80 was refused. This typically indicates that there are no services available on that port, but that it is NOT being blocked by a firewall or your ISP.

Try again

dyndns.com is seeing My external IP as 207.144.135.22
n reference to router side:

eth2 ( server NIC )is connected to router....

If eth2 is set to dhcp mode.the router assigns the 192.168.41.##
and I can get internet.

if I set static ip for eth2 to say maybe 192.168.1.11 (.2-.10 reserved for router DHCP . I get no internet, but i can access router(192.168.1.1) login and setup.

eth0 is private network NIC.
 
Old 02-12-2008, 04:22 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I found it easier to do it this way;
Code:
modem -> router ->  - webserver
                          - something else
                          - something else
here is the modem;
http://dwabbott.com/pictures/modem.png
here is the router;
http://dwabbott.com/pictures/router.png
What I do is pass everything through the modem to the router, then pass port 80 to the web server at 192.168.0.2. The other way with 2 nics you use iptables or some firewall script/program.
for iptables;
http://www.gentoo.org/doc/en/home-router-howto.xml

Last edited by comprookie2000; 02-12-2008 at 04:32 PM.
 
Old 02-12-2008, 06:16 PM   #3
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
i think you have many requests all at once.
Your modem right now is routing traffic between the inside network and the outside world. You don't only need and IP address on eth2, you also need to Fedora what DNS server to use in order for FC to find hosts on the internet. For example, when you try browsing www.google.com, then your computer will ask the DNS server about the IP address of www.google.com then your machine will be able to talk to www.google.com

I suggest the following:
1- Ping a public address:
Code:
ping 4.2.2.2
2- view your DNS client settings. For examples on my machine i see the following:
Code:
# cat /etc/resolv.conf 
search dream.net
nameserver 4.2.2.2
the file resolv.conf contains information to talk to a certain DNS server.

Bridging in DSL is as easy as telling the modem to go in bridge mode. But you still need somebody to do the DSL authentication. Some DSL ISPs usually secure the line communication and keep track of your line by requiring modem or some other device to authenticate using a certain username and password to establish DSL connection.


please post results from commands above.

Last edited by waelaltaqi; 02-12-2008 at 06:25 PM.
 
Old 02-22-2008, 06:02 PM   #4
claybv
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 0
dsl and new static ip

okay,
Here is the deal. I am using My linux server as firewall for private network and switch hub. I have a dedicated Network card for the modem.I got My static ip and setup my info in server nic that goes to DSL modem.Not seeing internet now. tried back on dhcp mode NIC goes out to internet. I called ISP tech support, We went through resets and power cycling modem and computers .

We tried straight to modem once with server ,then with laptop.. Could not even get laptop to internet with static or even dhcp,even after power recycle.

modem using bridge mode and tech support said I should just have to set static IP in computer NIC that goes to modem.

They issued trouble ticket for their advanced support for possibly monday.

any more suggestions?

Thanks!
 
Old 02-26-2008, 08:18 AM   #5
claybv
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Okay,

Iv'e been on line with ISP tech support a few times they even gave me different 'static IP'. apparently it is some setting we are missing on the modem. They're using bridge mode and said I should put 'static IP' in computer,We had no luck. They are going to look at manual on My model modem and see what features need to be changed to work in bridge mode and let it through.modem and PC seem to work,and modem appears to not be communicating when we change to static. seems the dhcp option will get out and shows me further down their network than should (external IP shows their side of network where it shouldn't). So they think must be certain advanced setting in modem that needs to be switched on/off. Modem is Zhone-Paradyne 6381-A3-200 ADSL2+ /R Bridge/Router.

Keep in mind they said modem should be bridged / and static IP be in PC nic.... and should work....
but we are still trying.......
 
Old 02-26-2008, 08:33 AM   #6
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
As i said Bridge mode usually requires authentication from another device/computer
The DSL line will not come up unless you authenticate
 
Old 02-26-2008, 08:44 AM   #7
ssarasin
Member
 
Registered: Jan 2007
Location: South Bend, Indiana
Distribution: Kubuntu 8.04 64bit, 32bit & PPC
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by claybv View Post
Okay,

Iv'e been on line with ISP tech support a few times they even gave me different 'static IP'. apparently it is some setting we are missing on the modem. They're using bridge mode and said I should put 'static IP' in computer,We had no luck. They are going to look at manual on My model modem and see what features need to be changed to work in bridge mode and let it through.modem and PC seem to work,and modem appears to not be communicating when we change to static. seems the dhcp option will get out and shows me further down their network than should (external IP shows their side of network where it shouldn't). So they think must be certain advanced setting in modem that needs to be switched on/off. Modem is Zhone-Paradyne 6381-A3-200 ADSL2+ /R Bridge/Router.

Keep in mind they said modem should be bridged / and static IP be in PC nic.... and should work....
but we are still trying.......
What I did when I set up my web server at home is to turn my modem into a "dumb modem" by turning off advanced features. I am using a Linksys WRT54G router and set the router to forward any external requests on port 80 to my internal IP address of my web server. I don't have a fixed IP from my ISP, so I am using DynDNS, which the router supports natively. (meaning that any time my ISP changes the IP address, my router will then update my account at DynDNS with my new info so that my host name will always point to my web server...)

So, now if any requests come to my router on port 80, they are automatically directed to my web server through NAT. The modem only handles the actually connection, the router then handles everything else...

You should be able to get into your modem by going to it's IP address.. (probably along the lines of 192.168.0.1) Once there, it will probably ask you for a user name and password, or possibly an ID number from the bottom of the modem. Enter the info, and you should be then at a configuration page on the modem.

If you are not using a separate router, you can use the one built in to the modem. You will probably have the best luck with a static IP on your web server. Such as 192.168.0.10. Go into the port forwarding portion of the modem configuration. There should be a series of boxes to fill in. You will want to enter port 80, and then the IP address of the machine you want to handle those requests. (ie: 192.168.0.10)

Now, whenever anyone on the outside enters your hostname or IP of your static IP from the ISP. (such as mywebsite.com) it will then hit your router which will then forward the request on to your internal IP address of 192.168.0.10 and your web server should respond to the request. All seamless from the outside world...

If you have a router in addition to your modem, you will then just configure your modem to play dumb by turning off the advanced features. (Put it into bridge mode I believe). You will then just configure your router instead of the modem in the same way described above. Forward requests to port 80 to your internal web server IP address...

Good luck!
 
Old 02-26-2008, 03:20 PM   #8
claybv
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I set my dns ,IP,subnet,gateway and bridge modem and still nothing....
 
Old 03-18-2008, 08:45 PM   #9
claybv
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Smile its working

Hooray !!!

whew! after several calls and waiting,different ip addresses and gateways and dns. They finally got their act on track !!. Their tech finally called me this afternoon,gave me a whole new ip and info in a totally different section of ip info, I'm now working.
ALL 4 sectors (*.*.*.*) of my ip is totally different and working.

Thanks to everybody that tried to help, hope to be able to help you later on......
 
  


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
how to setup dsl modem and router for webserver jun_tuko Linux - Networking 2 06-12-2007 10:13 PM
Router/firewall/webserver 2 nics dsl question don_from_wi Linux - Networking 2 03-29-2005 06:02 PM
DSL Webserver and Network Trouble (slackware) hcubed Linux - Networking 4 04-12-2004 09:55 PM
DSL, WebServer, Router bassmanb Linux - Newbie 1 02-06-2004 01:47 PM
Apache webserver on a DSL Dynamic IP system? bripage Linux - Networking 6 07-17-2003 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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