LinuxQuestions.org
Visit Jeremy's Blog.
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-25-2009, 09:39 PM   #1
TheGNUbie
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
DMZ cannot access internet


I recently changed my internet provider and wireless AP, now the DMZ cannot access the internet.

My Setup:
Wireless LAN - Wireless AP (D-Link Dir-655) - Linux Server - AT&T Modem - Internet

Everything worked properly before the setup and no changes have been made on the Linux Server/Firewall(shorewall).

My LAN can access the internet and the firewall but the firewall cannot access the internet. The only problem That I know of is that my LAN is on 192.168.0.* and the internal NIC of the Linux Server is 192.168.1.1 but since my LAN can access the internet (that goes through the Linux Server) it just seems odd why the server cannot.

Any suggestions you have is appreciated.
 
Old 11-26-2009, 02:14 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Answer - you have too many NATs
 
0 members found this post helpful.
Old 11-29-2009, 09:36 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by nimnull22 View Post
Answer - you have too many NATs
nimnull22, do you mean that you think double NAT-ing is causing the problem? -- Please explain why.

I have had a double NAT-ed, production, WiFi LAN in place for 6 months w/ no trouble.


TheGNUbie,
  1. Where in the diagram is your DMZ?
    1. Off the Linux Server/Firewall(shorewall)
    2. Off the Wireless AP (D-Link Dir-655)?
    3. Elsewhere?
  2. What did you [have to] change when you made the ISP switch?
  3. Who was your previous ISP?
 
Old 11-29-2009, 10:39 AM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Ok, lets see.
1. Internet.
2. AT&T Modem - is it route, or router/switch, or bridge. How do you get IP from it? How many ports does it have?
 
0 members found this post helpful.
Old 11-29-2009, 12:39 PM   #5
TheGNUbie
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Original Poster
Rep: Reputation: 0
answers...

@archtoad6,

1. Where in the diagram is your DMZ? ok I guess there isnt a DMZ
2. What did you [have to] change when you made the ISP switch? Almost nothing... once I got access to the internet, I just plugged the modem into the server, modified my interfaces file (see below) and it worked.
Code:
# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255


auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider
3. Who was your previous ISP? Local cable provider (outsourced from charter)

@nimnull22,
AT&T modem is a single port.
http://www.att.com/equipment/accesso...urer=&q_model=

Thanks guys.
 
Old 11-29-2009, 12:56 PM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by TheGNUbie View Post
AT&T modem is a single port.
http://www.att.com/equipment/accesso...urer=&q_model=

Thanks guys.
So it is a bridge, but it understands LAN and its mask, so please log into it and check what LAN network is assigned.

And you did not answer: how does Linux Server get IP address?

Last edited by nimnull22; 11-29-2009 at 01:01 PM.
 
Old 11-29-2009, 02:39 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by nimnull22 View Post
So it is a bridge, but it understands LAN and its mask, so please log into it and check what LAN network is assigned.

And you did not answer: how does Linux Server get IP address?
NO, it's NOT a bridge. It's a fairly std. aDSL modem w/ a built-in router, but no switch.

from http://www.att.com/equipment/accesso...rer=&q_model=:
Quote:
FEATURES
Single Ethernet port for simple DSL Internet connection. Fully supported by AT&T DSL Customer Support. This DSL Modem is currently designed for customers enjoying AT&T DSL in Arkansas, California, Connecticut, Illinois, Indiana, Kansas, Michigan, Missouri, Nevada, Ohio, Oklahoma, Texas, and Wisconsin. Please do not purchase if you are living in Alabama, Florida, Kentucky, Georgia, Louisiana, Mississippi, North Carolina, Tennessee, or South Carolina.
Item SKU: 2210-02-1022K(Motorola DSL Modem Model 2210)


TECHNICAL SPECS
LEDs: Power, Ethernet, DSL, Internet, and Activity Indicators
WAN Interface – ADSL (RJ-11)
ADSL Device configured for AT&T DSL services
8 Perm
ATM Adaptation Layer 5 (AAL5)
LAN Interface – Single Port Ethernet 10/100BASE-T Ethernet (RJ-45)
from http://www.dslreports.com/forum/r228...em-Model-2210:
Quote:
GTFan
Not for me in the 8 months I've had it. It might crap out eventually, but it's still going strong now. Has a decent router built in too, although you have to use telnet to access some of the common stuff, like DHCP reservations. Doesn't run hot either, but I think I got one of the later SNs with the chipset that doesn't have this problem.
The reference to DHCP explicitly answers where the LAN IP address assignments are, or should be, coming from (remember, this is AT&T we/he are dealing w/ here).

If it matters, the reference to Texas tells us that the WAN IP is obtained through PPPoE.

Last edited by archtoad6; 11-29-2009 at 02:45 PM.
 
Old 11-29-2009, 04:04 PM   #8
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by TheGNUbie View Post
...
Wireless LAN - Wireless AP (D-Link Dir-655) - Linux Server - AT&T Modem - Internet

My LAN can access the internet and the firewall but the firewall cannot access the internet.

How did you find that Server or/and Firewall can't access to internet?
 
Old 11-29-2009, 04:07 PM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
TheGNUbie,

I assume that the "Linux Server/Firewall(shorewall)" DID connect to the 'Net under your previous ISP?
Quote:
Local cable provider (outsourced from charter)
-- Please confirm, just for my peace of mind .

Do you still have the old copy of the interfaces file you provided above? I suspect the changes to it may be the root of your problem.


BTW, If your LAN is connecting ok, what does it matter if the Firewall doesn't connect? Perhaps that's more secure.


OTOH, you may want to figure out what's going on. Consider my drawing of your networks:
Code:
             0       1    2          3    4   \   |   / 5
   (    )    +-------+    +----------+    +-------------+
  ( 'Net )===| modem |----| Firewall |----| Wireless AP |
   (    )    +-------+    +----------+    +-------------+
                                              | | | |  6
Each of the #'s, 1-6, represents a interface & it's IP address.
Code:
#  IP Address    Description
0  W.X.Y.Z       ISP provided via PPPoE

1  192.168.m.1   modem's LAN - gateway & DHCP server
2  192.168.m.q   modem provided via DHCP

3  192.168.1.1   Firewall's LAN - gateway, DHCP server off
4  192.168.1.s   static IP for Firewall's LAN

5  192.168.0.1   WiFi gateway & DHCP server
6  192.168.n.1   wired gateway & DHCP server
If you consider a "LAN" to be the hosts served by a DHCP server or any home subnet, then there are 4 "LAN's" here:
  1. the modem's LAN -- consisting of it & the Firewall's WAN port,
  2. the Firewall's LAN -- consisting of it & the DIR-655's WAN port,
  3. the DIR-655's WiFi cloud,
  4. the DIR-655's wired ports (4).
They may not be needed to solve your problem, but we still don't know the values of m, q, s, & n.


D-Link DIR-655 info.
http://www.dlink.com/products/?pid=530
http://i.i.com.com/cnwk.1d/sc/321450...overview-1.gif
http://i.i.com.com/cnwk.1d/sc/321450...40-front-2.gif
http://i.i.com.com/cnwk.1d/sc/32145084-2-440-side-3.gif
http://i.i.com.com/cnwk.1d/sc/32145084-2-440-back-4.gif
ftp://ftp10.dlink.com/pdfs/products/...DIR-655_ds.pdf
 
Old 11-29-2009, 05:25 PM   #10
TheGNUbie
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Original Poster
Rep: Reputation: 0
The WAN IP is obtained via PPPoE.
Eth0 192.168.1.1 static
Eth1 192.168.1.64 dynamic (I assume this is assigned by the modem and I have no idea how/if it can be configured)

I found out the server could not connect when trying to get updates, after that i tried to ping, telnet, or just access the web via browser.. none worked.

Yes the previous configuration (charter) did allow me to connect to the web, but eth1 was my external (internet) IP address.

The old interfaces file was exactaly the same except it did not have the following lines:
Quote:
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider
If my firewall does not connect, how do I download updates? (I guess its fine if I cannot connect.. but not knowing why its not working is kinda bothering me)

if this diagram is correct:
Quote:
# IP Address Description
0 W.X.Y.Z ISP provided via PPPoE

1 192.168.m.1 modem's LAN - gateway & DHCP server
2 192.168.m.q modem provided via DHCP

3 192.168.1.1 Firewall's LAN - gateway, DHCP server off
4 192.168.1.s static IP for Firewall's LAN

5 192.168.0.1 WiFi gateway & DHCP server
6 192.168.n.1 wired gateway & DHCP server
The the problem could be that I have 2 IP addresses that are 192.168.1.1 (see below)
# IP Address Description
0 W.X.Y.Z ISP provided via PPPoE

1 192.168.m.1 modem's LAN - gateway & DHCP server
2 192.168.1.64 modem provided via DHCP

3 192.168.1.1 Firewall's LAN - gateway, DHCP server off
4 192.168.1.254 static IP for Firewall's LAN

5 192.168.0.1 WiFi gateway & DHCP server
6 192.168.n.1 Doesnt exist.

Last edited by TheGNUbie; 11-29-2009 at 05:27 PM.
 
Old 11-29-2009, 05:45 PM   #11
TheGNUbie
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Thats did it! Thanks everyone.

Last edited by TheGNUbie; 11-29-2009 at 06:18 PM.
 
Old 11-30-2009, 02:47 AM   #12
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
You're welcome, but what did you actually do to fix the problem?
 
  


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 access DMZ from LAN? GerianneMcC Linux - Security 3 12-04-2008 04:23 PM
WebServer/DMZ/SQUID Secure Access metallica1973 Linux - Security 9 08-12-2008 11:25 AM
IPCop DMZ zone internet access hosler Linux - Security 1 10-18-2006 01:12 PM
Can't access DMZ external IP kelper Linux - Networking 4 11-04-2003 09:47 PM
firewall & DMZ Access problem AnotherNewbie Linux - Hardware 0 05-16-2002 04:01 PM

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

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