- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to configure Firewall
Operating System - Linux
1753277
Members
4731
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2007 09:12 PM
тАО01-10-2007 09:12 PM
how to configure Firewall
Dear all
I am having 2 ip address in my linux box. I want to configure my firewall in such a way that, If telnet request is coming from one setof ip address it should accept and if it is from another set of ip address it should deny.
Is it possible with linux basic firewall
If possible please tell me how to configure that.
Thanks And Regards,
Guna
I am having 2 ip address in my linux box. I want to configure my firewall in such a way that, If telnet request is coming from one setof ip address it should accept and if it is from another set of ip address it should deny.
Is it possible with linux basic firewall
If possible please tell me how to configure that.
Thanks And Regards,
Guna
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2007 10:29 PM
тАО01-10-2007 10:29 PM
Re: how to configure Firewall
if basic firewall for you is IPTABLES.
Then its easy.
iptables -A INPUT -d 192.168.0.5 --destination-port 23 -j ACCEPT
allows telnet on ip address 192.168.0.5 or you can use -i eth0 if the interface is eth0.
You should you use DROP for deny.
But it depends how you iptables is set now...
More info here
http://www.linuxguruz.com/iptables/howto/
Then its easy.
iptables -A INPUT -d 192.168.0.5 --destination-port 23 -j ACCEPT
allows telnet on ip address 192.168.0.5 or you can use -i eth0 if the interface is eth0.
You should you use DROP for deny.
But it depends how you iptables is set now...
More info here
http://www.linuxguruz.com/iptables/howto/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2007 07:12 AM
тАО01-11-2007 07:12 AM
Re: how to configure Firewall
Hiya,
Also, you could check how to use the hosts.allow and hosts.deny files (man, google).
But most of all, for some level of security, I would recommend using ssh and disabling telnet alltogether ;-)
Cheers
Also, you could check how to use the hosts.allow and hosts.deny files (man, google).
But most of all, for some level of security, I would recommend using ssh and disabling telnet alltogether ;-)
Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2007 07:15 AM
тАО01-11-2007 07:15 AM
Re: how to configure Firewall
Sorry, I guess I misread your question. You probably want to accept connections to one of your IPs and not connections the other. Forget about hosts.allow and hosts.deny then (well, don't forget, but it won't help you here).
My advice on ssh is still valid, though.
Cheers
My advice on ssh is still valid, though.
Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP