Solved

Ip masquewrading ip address questions

Posted on 1997-09-02
2
174 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

809 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