HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Ipchains rules
Operating System - Linux
1825657
Members
3711
Online
109686
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
08-08-2001 08:55 AM
08-08-2001 08:55 AM
I have Redhat 7.1, an only have one ethernet card and one ip address, I try to filter telnet and ftp to work only with one remote pc, allow www for all and deny any other port, but when I apply the rules the telnet, ftp and www don't work for any pc or local, the icmp rules work good, there are the rules:
ipchains -A input -p icmp -s -j ACCEPT
ipchains -A input -p icmp -j DENY
ipchains -A input -p tcp -s ftp -j ACCEPT
ipchains -A input -p tcp -s ftp-data -j ACCEPT
ipchains -A input -p tcp -s telnet -j ACCEPT
ipchains -A input -p tcp -s 0.0.0.0/0 www -d 0.0.0.0/0 www -j ACCEPT
ipchains -A input -j DENY -l
ipchains -A input -p icmp -s
ipchains -A input -p icmp -j DENY
ipchains -A input -p tcp -s
ipchains -A input -p tcp -s
ipchains -A input -p tcp -s
ipchains -A input -p tcp -s 0.0.0.0/0 www -d 0.0.0.0/0 www -j ACCEPT
ipchains -A input -j DENY -l
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 01:40 PM
08-08-2001 01:40 PM
Re: Ipchains rules
Victor,
I am not sure about using ipchains to restrict these services but you can combine tcp wrappers and utilize the hosts.allow and hosts.deny files to restrict or disable access to services.
Entering something like the example below to your hosts.allow file to give access to telnet and ftp:
in.telnetd: 192.168.1.1
in.ftpd: 192.168.1.1
hosts.deny has the same syntax except it is used to restrict access to the services.
Hope this helps.
I am not sure about using ipchains to restrict these services but you can combine tcp wrappers and utilize the hosts.allow and hosts.deny files to restrict or disable access to services.
Entering something like the example below to your hosts.allow file to give access to telnet and ftp:
in.telnetd: 192.168.1.1
in.ftpd: 192.168.1.1
hosts.deny has the same syntax except it is used to restrict access to the services.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 06:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 10:21 PM
08-15-2001 10:21 PM
Re: Ipchains rules
Dude. ipchains sucks!
iptables Rulez!
(Sorry, I couldn't resist.)
iptables Rulez!
(Sorry, I couldn't resist.)
The closer you are to the code, the happier you are. - Ancient Geek Proverb
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP