Solved

Ip masquewrading ip address questions

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Squid Proxy 3.2.2 with AD authenticaion and ip user check 11 342
Open BDS Pf 3 48
IPA - can it be run on a web server? 3 147
What are recommended OS for exim mail server? 10 101
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

27 Experts available now in Live!

Get 1:1 Help Now