Solved

DNS-PROBLEM

Posted on 1998-12-28
5
234 Views
Last Modified: 2010-03-18
I built up a small network (2 machines) at home (ethernet).
I installed a news-server, a mail-server, a www-server and a name-server at the one machine (m1), the second is only the client(m2). All works fine.

But now my question:
Somtimes i connect m1 over ppp to my provider.
Could sombody explain me, what i have to do, that it is possible for m2, to use internet.
I only used 192.168...., because it is only a test at this time. But how i could establish f.i. a www-server not only for my small net, but for internet.
0
Comment
Question by:Hawky
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:mcdonc
ID: 1588001
You need to check out IP masquerading.

Find information at http://www.salug.org/~wcb/text/IP-Masquerade.txt

0
 
LVL 1

Accepted Solution

by:
cox earned 230 total points
ID: 1588002
First, you need re-compile your kernel with the options describles in
http://www.indyramp.com/mirrors/ipmasq/ipmasq-HOWTO-3.html#ss3.1

then, you need setup IP-Masq. In your case, put this lines in your /etc/rc.d/rc.inet1(slackware).. or put this lines in console (root SUID).

# Proxy eth0 local network
/sbin/ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0
# Proxy route
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 eth0
#ipfwadm routing...
/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

Using this, the class C (192.168.1.*) will be forward to Internet. In your case, the machines m1 and m2...

Machine m2 needs use default gateway machine m1.
For example: M2
IP: 192.168.1.2
Netmask: 255.255.255.0
Gateway: 192.168.1.1 (M1 IP)

If you want to read de HOW-TO of masquerade --> http://www.indyramp.com/masq/

If you don't have ipfwadm in your system:
Ipfwadm 2.3 is available from ftp://ftp.xos.nl/pub/linux/ipfwadm/ipfwadm-2.3.tar.gz 

[]
cox
0
 

Author Comment

by:Hawky
ID: 1588003
First: Thanks for your help. Now it is possible for m2 to get connected to the internet.
But in my distribution (SuSE 5.3) i found only the line
/sbin/ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0
in the rc.config. The two other lines i only put in at the prompt. In which files i have to put this lines in the correct way?
My own name server works correct, but what is with the name-server of my provider?
Is it not neccesary to put in this information into my system?

Thank you for your help
0
 

Author Comment

by:Hawky
ID: 1588004
Adjusted points to 230
0
 
LVL 1

Expert Comment

by:cox
ID: 1588005
i can put all lines in same file, in slackware /etc/rc.d/rc.inet1, in Red Hat is other file..

put all lines in the file rc.config, no problem.. ;)

Using your own nameserver, it'll be able to resolve the address m1, for example.. i only see this diference... I prefer use my provider nameserver.. ;)

[]'s
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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