Solved

DNS-PROBLEM

Posted on 1998-12-28
5
225 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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

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 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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

20 Experts available now in Live!

Get 1:1 Help Now