Click to See Complete Forum and Search --> : PM Firewall for Sharing
eXtremist
03-12-2001, 09:28 AM
Hello there.. I have RedHat 7.0 installed and wanted to use it to share my internet connection with a windows machine. I read a review for PMFirewall in this month's issue of Maximum Linux magazine and decided to give it a try. Here's what I did:
I installed PMFirewall answering the questions it asked. More specifically, I answered YES when it asked if I wanted to share my internet connection. It automatically detected my external net (internet) and internal net (LAN) and I thought that the sharing would be set up for me.
I went to the windows machine and set the GATEWAY and DNS to the internal IP of the linux box, expecting this to work.. It didn't. I can ping each computer from the other, so I'm figuring that PMFirewall doesn't actually enable the sharing (or does it?). Am I supposed to set up the IP Masquerading myself, or SHOULD it work with what I did?
Greg
pmfirewall will not set up IP masquerading. It allows you to use IP masquerading through the firewall.
Regards,
Rod
eXtremist
03-12-2001, 09:49 AM
Thanks.. guess I'll have to set up the masq myself huh?
Mountainman
03-12-2001, 09:52 AM
Yeah, check out the ipmasq howto. takes about 10 minutes to setup.
spickus
03-12-2001, 10:31 AM
PMFirewall does setup IPMASQ. I've done it with several Slack boxes. Did you set the DNS servers to your Linux box or to your ISP's?
[ 12 March 2001: Message edited by: spickus ]
Originally posted by spickus:
PMFirewall does setup IPMASQ. I've done it with several Slack boxes. Did you set the DNS servers to your Linux box or to your ISP's?
[ 12 March 2001: Message edited by: spickus ]
I stand corrected...forgive me for the bad information.
Thanks you for the correction...spickus.
Regards,
Rod
[ 12 March 2001: Message edited by: rod ]
eXtremist
03-12-2001, 11:31 AM
hello again..
Here's the steps I followed (it didn't work)..
I got the internet working across my eth1 interface (works perfectly..no probs)..
Then I got the internal network running across eth0 (this also works..can ping other computer, and it can ping me)..
From here I installed PMFirewall, and answered its questions (answering no to most). When it asked the external net device, I entered eth1, and when it asked for the internal device, I entered eth0. When it asked to ban any IPs, I said no, and when it asked if I wanted to use IP masq, I said yes.
After this I restarted, and everything still worked on my linux box (internet worked, and I could ping my LAN).
So I went to the windows box, and changed the DNS and the GATEWAY to the internal IP of my linux box (and of course, restarted).
After the restart, I could still ping the linux box from windows, but the internet wouldn't work.
SO, if PMFirewall sets up IP_MASQ automatically, why didn't it work for me?
:( :mad: :confused:
XxMaCaBrExX
03-12-2001, 11:48 AM
I've had this problem when using PMFirewall ever since it was released. I'm not too handy with IP-Masq, but I'm pretty fluent with Linux and networking. I suggest using the IP-Masquerading NHF. It takes a little longer, but the end results are usually better. =)
eXtremist
03-12-2001, 12:24 PM
Thanks to everyone who helped.. The info I needed I actually found in a link...
Read This (http://www.linux-mandrake.com/en/demos/Networking/IPmasq/pages/ipmasq23.php3)
PMFirewall sets up IP_MASQ, but doesn't enable it.. You need to enable it and then it will work.
[ 12 March 2001: Message edited by: eXtremist ]
XxMaCaBrExX
03-12-2001, 12:31 PM
Originally posted by eXtremist:
Thanks to everyone who helped.. The info I needed I actually found in a link...
Read This (http://www.linux-mandrake.com/en/demos/Networking/IPmasq/pages/ipmasq23.php3)
PMFirewall sets up IP_MASQ, but doesn't enable it.. You need to enable it and then it will work.
[ 12 March 2001: Message edited by: eXtremist ]
That link is Broke Like A Joke! :D
eXtremist
03-12-2001, 12:34 PM
try it again.. it's fixed