LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-21-2001, 06:26 PM   #1
wesvan
LQ Newbie
 
Registered: Jun 2001
Location: Florida
Posts: 1

Rep: Reputation: 0
Linux router problems


The setup:
* A LAN with several PC's, an NT web server using IIS
* A Linux (RedHat), router with 2 NIC's, one connected to the DSL modem, the other connected to our LAN.
* All our PC's on the LAN can access the internet through the default gateway.

What works: Users outside our LAN can access our web site through the internet just fine. Inside users can also access our web site using the local IP of the web server.

What does NOT work: Inside users cannot correctly display HTML pages on our web that have href commands that point to jpg files on our web server. That is because the HTML code contains the IP address of our router. In other words the IP address someone would use to point to our web server from the outside.

How can I fool the LAN side PC's into thinking they are browsing the web from the internet? A couple people said I would have to use IP fowardwarding. We used to have a Netopia router which did the trick, but ever since the Northpoint fallout, we have been trying to get the Linux router to do what the Netopia did in the past.

Any help would be greatly appreciated!!

Thanks

Wes:
 
Old 06-24-2001, 11:19 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
What I use for NAT is...

ipchains -P forward DENY

ipchains -A forward -s 192.168.0.0/24 -d 0/0 -j MASQ


thats it


you also need to set forward to 1

[david@xxxxxx /]$ cat /proc/sys/net/ipv4/ip_forward

1

[david@xxxxxx /]$

if it says 0 do this

[root@xxxxxx /]# echo 1 > /proc/sys/net/ipv4/ip_forward


Last edited by DavidPhillips; 06-24-2001 at 11:27 PM.
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
Router problems or Linux? dolvmin Linux - Networking 2 03-15-2004 01:41 PM
linux isdn router problems with hangup tuxx Linux - Networking 0 10-02-2003 01:03 PM
Belkin Router + Gentoo Linux port problems Jusse Linux - Networking 0 09-08-2003 04:57 PM
Ethernet card problems on Linux router yumso Linux - Networking 1 04-17-2001 05:09 PM

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

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