Solved

Ip masquewrading ip address questions

Posted on 1997-09-02
2
172 Views
Last Modified: 2010-05-18
I have a few questions about ip masquerading, and which ip addresses should be used.

I am looking through the Linux IP Masq mini HOWTO, and I don't really understand what the ip addresses should be set as. Although you obviously need to have a net connection (and registered IP address) to use this, and it should be on the linux box, I was wondering what should be set where. The HOWTO says to set the ip address of the linux box to 192.168.1.1... but if that is the ip address, how can it get on the net. My assigned ip should be 24.3.10.23.

In short, fill in these blanks: I put in what I have currently, which does not work.
Things to know:

Assigned ip: 24.3.10.23
Assigned gateway: 24.3.10.1
Assigned DNS: 24.3.0.33

Linux ip: <24.3.10.23>
Linux gateway: <24.3.10.1>
Linux DNS: <24.3.0.33>

Win95 box ip: <192.168.1.2>
Win95 box gateway: <24.3.10.23>
Win95 box DNS: <24.3.0.33>

Thats what I have now... is that incorrect? I cant ping the linux box.
0
Comment
Question by:edskee
2 Comments
 
LVL 3

Accepted Solution

by:
sauron earned 100 total points
ID: 1586398
If you think about it, an IP masquerading box is, by definition, a router. A router has at least two interfaces, so you will (probably) have an ethernet card in your masquerading machine, which has the 192.168.1.1 ip address attached to it. Your assigned ip address will be the address of the internet-facing interface, usually a PPP-link.

So, linux machine:-

PPP interface IP: 24.3.10.23
Ethernet IP: 192.168.1.1
Nameserver: 24.3.0.33
Gateway: 24.3.10.1

Win95 box:-

Ethernet IP: 192.168.1.2
Nameserver: 24.3.0.33
Gateway: 192.168.1.1 ********IMPORTANT********

On your linux box, configure it's IP address as 192.168.1.1

In the file /etc/sysconfig/network, you might have something like:-
NETWORKING=yes
HOSTNAME=your.hostname
DOMAINNAME=your.domainname
GATEWAY=24.3.10.1
GATEWAYDEV=ppp0


and in /etc/sysconfig/network-scripts/ifcfg-eth0, you might have:-

DEVICE=eth0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes

Of course, I'm assuming your connection to the internet is a PPP link here, but the principles are the same, even if it isn't. The file locations are right for RedHat, I'm not sure about other distributions...
0
 
LVL 2

Author Comment

by:edskee
ID: 1586399
Damn. I igured this out myselkf, and was coming on to delete my question and get my points refunded. You beat me to it. I'm up and running, thanks for the help anyway though :)

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now