LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2003, 11:14 AM   #16
Gorbachov
LQ Newbie
 
Registered: Sep 2003
Location: Bankya
Distribution: ASPLinux v7.3 Vostok
Posts: 29

Rep: Reputation: 15

Yes it need a lot of time well spend for reading...But I got used to use the console...
 
Old 09-25-2003, 12:43 PM   #17
Stoic
LQ Newbie
 
Registered: Sep 2003
Location: Netherlands
Distribution: Mandrake
Posts: 24

Rep: Reputation: 15
One more thing. I did say you didn't need to specify the DNS servers on the Windows machine. Well, it appears that you actually have to specify them. In Mandrake you can find the DNS server IPs among others via Linuxconf (start as su). Probably there is an easier way to find out...
 
Old 09-25-2003, 01:50 PM   #18
Gorbachov
LQ Newbie
 
Registered: Sep 2003
Location: Bankya
Distribution: ASPLinux v7.3 Vostok
Posts: 29

Rep: Reputation: 15
I think I mentioned that!?


Gorbachov
 
Old 09-25-2003, 02:29 PM   #19
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
In Mandrake you can find the DNS server IPs among others via Linuxconf (start as su). Probably there is an easier way to find out...
cat /etc/resolv.conf
 
Old 09-25-2003, 09:06 PM   #20
Chryzmo
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 10.1
Posts: 180

Original Poster
Rep: Reputation: 30
Hey guys,


It works! Woo! Thanks a lot for all your help, through the advice from everyone I pieced it together and finally got the Windows PC online.

Thanks again,

Chris
 
Old 09-26-2003, 02:36 AM   #21
Stoic
LQ Newbie
 
Registered: Sep 2003
Location: Netherlands
Distribution: Mandrake
Posts: 24

Rep: Reputation: 15
Quote:
Originally posted by /bin/bash
cat /etc/resolv.conf
That looks indeed much easier

Quote:
Originally posted by Chryzmo

Hey guys,

It works! Woo! Thanks a lot for all your help, through the advice from everyone I pieced it together and finally got the Windows PC online.

Thanks again,

Chris
Great to hear! Enjoy the sharing .
 
Old 09-26-2003, 07:35 AM   #22
tek8one
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Gorbachov:

Thank you for that code and the insight on what each line does. That was a lot better than reading through the long FAQs and HOWTOs I've found scattered across the internet.

However, I'm a little worried. After executing those commands and setting up rc.local, I noticed something. My external IP address is completely wide open! I have set the Security Level in RedHat to High and only have HTTP and SSH ports open. However, I can access VNC and other services I setup from outsite the network. Im sure there is a way to block unwanted incoming traffic, but I don't know where to begin. Any ideas?

TIA
Tek8one
 
Old 09-26-2003, 12:10 PM   #23
tek8one
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Figured it out

------

modprobe ipt_MASQUERADE
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

------

I figured out why all my ports were wide open. the second line in the code that Gorbachov provided, flushes all the tables out (deletes chains), taking away the chains I setup elsewhere. This is fine if you have a cable modem or dsl modem you're connecting to since most come with a built in firewall. For others like myself who have a straight connection to the internet, they need to comment out tha second line to keep your other chains intact and all will be safe and secure. Thanks again Gorbachov. You prevented me from going bald at 22

Tek8one
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing internet connection with windows xp melinda_sayang General 11 12-10-2004 09:51 PM
Sharing internet connection with windows Kontrau Linux - Networking 2 05-02-2004 07:10 PM
Windows Xp, Slackware Internet Connection Sharing. Volcom Slackware 14 07-04-2003 06:18 PM
Windows and Linus sharing an internet connection... Negativ13 Linux - Newbie 15 02-21-2003 01:37 AM
Windows internet connection sharing Config Linux - Networking 3 02-22-2002 12:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration