Linux - NetworkingThis 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.
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 advice you to add entries that allow access from specific addresses to telnet port and then add entry that denies access to telnet port from all the addresses. INPUT chain in filter table would be good place for it. What do you think?
want to know those entries.
i tried a lot from googling but not getting any specific solution.
can you advice me if i want to allow an IP (192.168.x.y) to connect my server via telnet,what should i enter into /etc/init.d/iptables
It is often useful to use a tool such as Shorewall to maintain the IPTables rules for you, because the set of rules must be regarded as a complete set. (It does you absolutely no good to issue a rule that "tightly seals a doorway" when "the window next door is wide open," most especially when "... and you didn't know it," which is easy to do!)
Tools like Shorewall let you describe what you want to achieve, then they correctly issue the entire set of IPTables commands needed to do it. As for myself, I stopped monkeying-around with using the IPTables command directly, a long time ago.
--- Side comment: When posting a question, please be sure that the question is both complete and actually answerable. If we can't readily see what you're asking and in what context you are asking it, we can't help you get the answers you require. If you're having trouble with the English language and/or with knowing exactly what you do need to ask, please seek help from a colleague in your own country and work-group, either to help you ask your question or to answer it.
Last edited by sundialsvcs; 05-16-2013 at 10:05 AM.
want to know those entries.
i tried a lot from googling but not getting any specific solution.
can you advice me if i want to allow an IP (192.168.x.y) to connect my server via telnet,what should i enter into /etc/init.d/iptables
This seems to be a recurring thread with your posts. You claim to have "done googling", but never seem to find any of the EASILY found solutions that others give you, and your 'questions' are open-ended.
What you're asking for is someone to read them for you, and spoon-feed you the exact command you want. This is much the same thing as asking someone else to write a program for you; if you show effort of your own and explain where you're stuck, we are always happy to help. Just saying over and over "this is what I need", and showing no effort of your own will likely NOT get you help.
dear Habitual,
i went for setting some rules on "iptables"
and i saved it..
Code:
/etc/init.d/iptables save
and i restarted it..
Code:
"/etc/init.d/iptables restart"
now everything is fine and working..
but on rebooting all rules are flushed off.
I want to set all rules permanently.
i.e even after reboot it remains as it.
any suggestions??
thanks in advance..
dear Habitual,
i went for setting some rules on "iptables"
and i saved it..
Code:
/etc/init.d/iptables save
and i restarted it..
Code:
"/etc/init.d/iptables restart"
now everything is fine and working.. but on rebooting all rules are flushed off. I want to set all rules permanently. i.e even after reboot it remains as it. any suggestions??
We will AGAIN suggest that you read the links/pages/tutorials you've been handed SEVERAL TIMES so far.
The link I posted to you before has a section that explains how to do this, with sample commands. Section 14.7, since you want to be spoon-fed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.