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 05-22-2008, 07:41 AM   #1
2GMario
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Help with DMZ / web server


Hi everyone, need some help

We need to wrap a RHEL5 web server, thats currently in production, in a DMZ, but still allow it to access our IBM AS400 which is in the lan, to pull account information via odbc

Maybe a little architecture is in order first - We are a call center, and clients dictate the extent of our security / infrastructure - if a client wants it, they get it

So, we have a Firewall / Router (SonicWall), wan port connected to 3mb pipe, lan port goes out to bank of switches and the DMZ port (x2), up till yesterday was off

The web server, connected to the lan port via a switch, assigned 10.1.0.90 on eth0 has been in production for some time, working fine, connecting to the as400 locally on the same lan, via php / odbc for its database

So we called Sonicwall, they helped us setup the dmz which assigns ip's in the range of 192.168.0.*. Used my laptop to setup a test web server at 192.168.0.10 and we could hit it from the outside world just fine

make the same settings on RHEL5 server and after some finangling with apache, got apache to listen for 192.168.0.10 on eth1 (because i cant take eth0 down as its in production)

And this was fine, apache returns a test page, with some test data read from the db on the as400, except for the minor inconvenience of, when the connection was made to the as400, it went out over eth0 (10.1.0.90) and not eth1 (192.168.0.10) - we know this cause we can see the connections on the 400 side being made.

So, as a test, i assumed, if eth0 was taken offline, odbc and the system in general would move on to the next available port, eth1 and make the odbc connection there - this morning at 6am, i deactivated eth0, and the connection simply never went through (we tested it with it being active before just to make sure it was still working)

From what we can tell, the rules in the firewall for the dmz to hit the lan over port 8471 (odbc port for the as400) are correct

so my question is

a: is there somewhere i can tell odbc to use eth1 and not eth0 ?

b: i rebooted the server this morning and apache gave a message (loaded just fine) about dns - we dont run dns on this server, but on another machine on the lan, which isnt in the dmz - could that be it ? do i need to run dns on the web server to provide for eth1 cause its in the dmz?

c: in production, eth0 will just change to 192.168.0.10 and all the settings in apache with it, but i cant do this until i verify the web server can make the odbc connection outside of the dmz into the lan -

d: i'm just lost...... i just dont know where to go from here.

Help! please ?

-Mario
 
Old 05-22-2008, 09:44 AM   #2
stzein
Member
 
Registered: Mar 2004
Location: Antwerp, Belgium
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
I would say add a static route to the AS400.
You can do this temporary (to test) with the command
Code:
route add XX.XX.XX.XX dev eth1
where XX.XX.XX.XX is the AS400's ip.

I can't say off the top of my head how you make this setting permanently in RHEL. A quick google search suggests you need the config file /etc/sysconfig/network.
 
  


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
Allowing web server in dmz to access AS400 in LAN sunethj Linux - Networking 0 01-09-2007 11:06 PM
web server,dmz,iptables puding Linux - Networking 7 08-10-2004 02:48 PM
Access Web Server lacated on DMZ plexi100 Linux - Newbie 2 10-13-2003 09:01 PM
smoothwall DMZ web server andyroshill Linux - Networking 1 09-16-2003 03:38 AM
DMZ and web servers SSBN Linux - Networking 1 05-01-2003 01:53 AM

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

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