Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
06-25-2003, 12:45 PM
|
#1
|
Member
Registered: Jun 2003
Distribution: Slack9, Red Hat 8.1
Posts: 117
Rep:
|
iptables rule to let samba in
what rule do i need to add to my script to allow my win2k machine to get to my shared linux drive. Samba works already when i flush all the rules but when i run my firewall script i can see my linux machine in My Network Places but i can't go to it.
|
|
|
06-25-2003, 01:20 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Try adding these 3 iptables rules:
iptables -A INPUT -p tcp --dport 137 -j ACCEPT
iptables -A INPUT -p tcp --dport 138 -j ACCEPT
iptables -A INPUT -p tcp --dport 139 -j ACCEPT
|
|
|
10-14-2003, 10:48 PM
|
#3
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Rep:
|
When you add rules like that to iptables, do they have to be added evrytime the machine starts up or are they automatically added to the default firewall rules? If they need to be added to the iptables rules, how do you permanetly add rules?
|
|
|
10-15-2003, 12:58 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
The either need to be added each time or saved using the "iptables-save" command.
|
|
|
10-15-2003, 11:14 PM
|
#5
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Rep:
|
So after I do the "iptables . . . ", I issue the iptables-save command and that will save the info into the iptables script?
|
|
|
10-16-2003, 01:43 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Yes - It should save them so that the rules are in place after the next reboot.
|
|
|
10-17-2003, 09:22 AM
|
#7
|
LQ Newbie
Registered: Oct 2003
Distribution: Linux 9.0
Posts: 14
Rep:
|
what is this command doing
i looked at the command above and thought great!! I can learn something, however when looking into the command help to see what all of that means I can not find --dport, what is that?
|
|
|
10-17-2003, 10:25 AM
|
#8
|
Member
Registered: Dec 2002
Location: Currently: Normal, IL @ ISU -- Typically: South of Chicago
Distribution: Currently: RH 9 && Slackware 9.1 =)
Posts: 50
Rep:
|
dport means "destination port" I do believe.
|
|
|
All times are GMT -5. The time now is 09:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|