Solved

DNS-PROBLEM

Posted on 1998-12-28
5
217 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Adjusted points to 230
0
 
LVL 1

Expert Comment

by:cox
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

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…

771 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