Opening a port (ipchains)

This is a discussion on Opening a port (ipchains) within the Linux Security forums, part of the System Security and Security Related category; I've got a computer that's using tcpd, ipchains, and portsentry. I want to open a non-priveleged port ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-02-2003
Jonathan Hayward
 
Posts: n/a
Default Opening a port (ipchains)

I've got a computer that's using tcpd, ipchains, and portsentry. I
want to open a non-priveleged port at least to one specific host; all
are set to restrictive settings. /etc/hosts.deny has ALL:ALL, ipchains
was set up for high security, and portsentry is on advanced mode on
both TCP and UDP.

What do I need to do so that a given priveleged/nonpriveleged port is
open to some/all hosts?

++ Jonathan Hayward, jonathan.hayward@pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
Reply With Quote
  #2 (permalink)  
Old 09-02-2003
Baho Utot
 
Posts: n/a
Default Re: Opening a port (ipchains)

Jonathan Hayward wrote:

>
>
> I've got a computer that's using tcpd, ipchains, and portsentry. I
> want to open a non-priveleged port at least to one specific host; all
> are set to restrictive settings. /etc/hosts.deny has ALL:ALL, ipchains
> was set up for high security, and portsentry is on advanced mode on
> both TCP and UDP.
>
> What do I need to do so that a given priveleged/nonpriveleged port is
> open to some/all hosts?
>
> ++ Jonathan Hayward, jonathan.hayward@pobox.com
> ** To see an award-winning website with stories, essays, artwork,
> ** games, and a four-dimensional maze, why not visit my home page?
> ** All of this is waiting for you at http://JonathansCorner.com


Try:

ipchains -A input -i eth1 -s 192.168.1.0/24 -j ACCEPT
ipchains -A output -i eth1 -d 192.168.1.0/24 -j ACCEPT

or

# HTTP server (80)
# ----------------
ipchains -A input -i eth0 -p tcp \
--source-port 1024:65535 \
-d 92.168.1.1 80 -j ACCEPT

ipchains -A output -i eth0 -p tcp ! -y \
-s 192.168.1.1 80 \
--destination-port 1024:65535 -j ACCEPT

Later Dude
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0