IP Masquerading


 
Thread Tools Search this Thread
Special Forums IP Networking IP Masquerading
# 1  
Old 08-19-2003
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  
Old 08-20-2003
Your gateway should be resolveable in the /etc/hosts-file
Also /etc/nsswitch.conf should point to :

hosts files .......

Regs David
# 3  
Old 08-20-2003
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  
Old 09-15-2003
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  
Old 10-14-2003
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

2. AIX

sendmail masquerading on AIX.

Hello all, I have a requirement wherein I need to change the "received from" address parameter for outgoing mails from an AIX server. I tried using the option to specify the "reply-to" address, still my relay server rejects the mails as the "received from" address still contains . I know,... (1 Reply)
Discussion started by: thisissouvik
1 Replies

3. UNIX for Dummies Questions & Answers

Sending mail as another user (username masquerading)

I have sendmail as the smtp server. I want that all mails sent from user1 actually appears to come from user2(also should be reflected in mail header). How can i accomplish the task by tweaking sendmail or are there any other means to do so? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

4. AIX

Mutt/Sendmail Masquerading Problem on AIX 5.3

We are running Unix AIX 5.3 and I have been asked to masquerade the sender name on our email processing. We have one domain name and many users: user1@domainname user2@domainname user3@domainname We use mutt/sendmail to do our email processing. I discovered that using genericstable within... (1 Reply)
Discussion started by: FHMARTINS
1 Replies

5. IP Networking

howto start with gateway / router / masquerading

Hi there, I have only basic knowledge in Unix but I'm eager to learn. I have a new complex (for me) exercice and I have no idea how to start. I have a regular network on witch I'm trying to plug another network. Here is an image of the physical network.... (7 Replies)
Discussion started by: chebarbudo
7 Replies

6. SCO

Sendmail masquerading

I am having a problem with my sendmail configuration I have masquerading on but when I send a mail to multiple people it masquerades my email but not the others? see the sample below: From: name@vegena.net Sent: Friday, July 24, 2009 9:42 AM To: name2@atksco1.vegena.net;... (0 Replies)
Discussion started by: garycrow
0 Replies

7. IP Networking

selective masquerading

I am running Linux 2.6.20 on i686 architecture. I want to be able to masquerade different hosts on my LAN to different external interfaces. Specifically, I want one specific host to masquerade through a vpn tunnel while the other hosts simply masquerade over the regular ISP interface. I only... (4 Replies)
Discussion started by: NESter
4 Replies

8. Linux

postfix configuration issues...specifically masquerading (lack of )

postfix configuration issues...specifically masquerading (lack of ) Mail sent to our intranet arrives correctly (me@domain.com). Mail sent to our intranet arrives correctly (me@domain.com). Anything going outside does not, so my tests get rejected (me@hostname.com) :( any assistance... (5 Replies)
Discussion started by: mr_manny
5 Replies

9. UNIX for Dummies Questions & Answers

Sendmail Masquerading

Hi, I'm trying to get my mails sent from the address user@domain instead of user@hostname.domain. Should be simple masquerading configuration in sendmail config files, but this is where I fall (newbie). The sendmail.cf is not recommended for editing. There should be some kind of .mc file that... (0 Replies)
Discussion started by: shimpanzo
0 Replies
Login or Register to Ask a Question