SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I never seem to be able to forward any port, even when my routers configurations seem to be completely correct.
But, when I installed Slackware, all the ports that are supposed to be open are, even some that I didn't specify in my router. How does Slackware do this.
if /etc/rc.d/rc.ip_forward is set to executable, then your Slacware box will forward ipv4 packets onwards.
What is allowed and not allowed will depend on your firewall settings, ie your iptables rules, but you will need to arrange for your own firewall as Slackware does not provide one natively.
Even if the ports are open on your Slackware box ('netstat -pantu' is useful) connections to/from the 'outside' will still depend on your router's firewall settings.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Come on guys - I know I'm new here so don't flame me out but the guy is asking an intelligent question. Surely the question is "how does slackware do this" rather than "how come windows doesn't" ? Lets not be closed minded about this ? These forums are how we learn aren't they..
I for one would be interested in the answer but I don't have the knowledge to explain. Weren't you all newbies once? (iamzz - I'm not implying your a neewbie here - I'm on your side !!)
I take it you have a router to connect your machines to the internet. And as an example you have set this router up to forward port 80 for a web server on one of your machines on your LAN.
When you install windows XP with SP2 it will enable the built in firewall with its default rules. These rules block all incoming connections. And then you have to configure it to allow anything else you need.
Now when you come to linux it is a bit different. In general all linux distributions have a firewall. It is part of the kernel, however you might just find one out there that does not have this enabled. To keep it simple we will assume that all distros have firewall capabilities built in. When you install your chosen distro you may be asked about configuring the firewall, it will ask you some questions about what sort of things you will be doing. Some distros may not ask you anything, but will enable some default rules like windows does. But you will also get a distro like slackware, it has firewall capabilities but does not enable any of them. It leaves it up to you to decide how you will configure the firewall.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Ok - point taken. I take it the question was how come Slackware honours the routers settings yet Winblows doesn't. With hindsight this is obviously explained as Windows doesn't work as it should but Slack does and it is not in the scope of this forum to explain why .
Sorry, its late in the UK and my mind is burnt out a bit through through kernel builds ( BTW thanks for your info on my thread Alien Bob ). I'll have to put my mind in gear before opening my mouth in future.
... Late night kernel builds might not be a good thing but this new OS is kind of addictive !!
Ok, this might be a little inappropriate, but does anyone know how opening a port would be done in a Windows XP SP2 install? I have turned off firewall, and check just about every option.
Originally posted by trickykid
Perhaps you should ask this question on a windows forum ...
We're generally here supporting Linux users in our spare time as a contribution to the community.
When you purchased the Windows software, you also paid for support. If your Windows OS is a Retail version, you may call Microsoft for support; if it's OEM, you should call the OEM who provided it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.