The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
postfix configuration issues...specifically masquerading (lack of ) mr_manny Linux 5 08-01-2007 11:14 AM
Sendmail Masquerading shimpanzo UNIX for Dummies Questions & Answers 0 11-16-2006 06:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-19-2003
skotapal skotapal is offline
Registered User
  
 

Join Date: Aug 2002
Location: Philadelphia, PA
Posts: 75
IP Masquerading

Hello

I am trying to setup a nework using IP Masquerading. I followed the instructions/ steps as follows:

1. Appropriated a multi-homed box
2. I have installed Redhat Linux 8.0 on it (base install)
3. INetwork settings
eth0 192.168.0.1 netmask 255.255.255.0
eth1 a static IP my ISP had provided. netmask 255.255.255.248 gateway: the one provided by my ISP.
4. ran the following commands
# route add -net 192.168.0.1eth0
192.168.0.1eth0: hostname not found
# route add -net <my.static.address>eth1
<my.static.address>eth1: hostname not found
# route add default gw <my isp's gateway IP>
# ipfwadm -F -m -a accept 192.168.0.0/16 -D 0.0.0.0/0
-bash: ipfwadm: command not found
5. I restarted the network
6. On my client (Windows 98), I configured the TCP/IP setting as IP: 192.168.0.2/ 255.255.255.0/ netamask: 192.168.0.1/ DNS Search order: provided my my ISP

The problem is... I am able to ping both the 192 address and the externel IP address of the host (the box on which I have the IP Masquerading setup). I am also able to browse the network - within the same WORKGROUP. I am however not able to browse the external internet! I have setup my browser proxy setting to the IP of the host (eth0) on port 3128.

Am I missing something? Please Advise!

Thanks

KS
  #2 (permalink)  
Old 08-20-2003
davidg's Avatar
davidg davidg is offline
Registered User
  
 

Join Date: Jul 2003
Location: Holland
Posts: 207
Your gateway should be resolveable in the /etc/hosts-file
Also /etc/nsswitch.conf should point to :

hosts files .......

Regs David
  #3 (permalink)  
Old 08-20-2003
skotapal skotapal is offline
Registered User
  
 

Join Date: Aug 2002
Location: Philadelphia, PA
Posts: 75
I have checked both the files...
1. I have included
192.168.0.1 CESSNA
2. The /etc/nsswitch.conf already has an entry reading:
hosts files nisplus dns

This did not help! Any other ideas?

Thanks

KS
  #4 (permalink)  
Old 09-15-2003
csejl csejl is offline
Registered User
  
 

Join Date: Apr 2002
Posts: 29
It doesn't look like you have ipfwadm installed. Try iptables (www.netfilter.org). Is ip_forward turned on? What is the output you get when you do 'ifconfig -a'? Your Linux box should be the gateway for your Windows client.
  #5 (permalink)  
Old 10-14-2003
photon's Avatar
photon photon is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 162
Quote:
I am however not able to browse the external internet!
You may not have a nameserver ( DNS )

In your /etc/resolv.conf put the following


Code:
domain www.yourdomain.com

nameserver 10.0.0.1
nameserver 10.0.0.2

Where 10.0.0.1 is your primary DNS and 10.0.0.2 is your secondary.

You get this info from your ISP.
Closed Thread

Bookmarks

Tags
linux commands, ping, ping port, port, port ping

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0