Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Accept ports with IPCHAINS
Results 1 to 5 of 5

Thread: Accept ports with IPCHAINS

  1. #1
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Accept ports with IPCHAINS

    What is the command for setting up for accepting ports ( 81 and 82 ) for my webserver with IPCHAINS?? I lost all my notes when I made the house move and I kinda forgot what is the exact command. Since I had to reconfigure my system for a new IP and host name ( for cable modem from DSL ), all my rules sets are not working anymore. Thanks.

  2. #2

    Re: Accept ports with IPCHAINS

    ipchains -A input -p tcp --dport 81 -j ACCEPT

    If you want to do it on the fly, change the -A to -I. And if you want to remove it, change it to -R.

  3. #3

    Re: Accept ports with IPCHAINS

    hi compunuts!

    nevermind!! kenshi got it

  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re: Accept ports with IPCHAINS

    Ah Thanks guys ....

    One more question. How do I delete the specific rule set?? Let's say it's the third rule set from the chain?? I made the mistake in setting it up and there is no ACCEPT nor REJECT part showing up. It just say "-". How can I delete that one??
    TIA

  5. #5

    Re: Accept ports with IPCHAINS

    it can be done with -D <number> of the rule .. or you can specify the whole rule u made then it gets deleted ..
    iptables -L --line-number gives you the rulenumber.

Similar Threads

  1. accept all TCP traffic originating from the firewall
    By smith786 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 10-06-2005, 08:08 PM
  2. Upgrading IPCHAINS for IPTABLES
    By wrochal in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-08-2004, 07:33 PM
  3. How to close down ports with IPCHAINS
    By Compunuts in forum Linux - Software, Applications & Programming
    Replies: 14
    Last Post: 01-22-2002, 10:57 AM
  4. IPCHAINS ! How to tell it to not log ARPWATCH ??
    By Compunuts in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 12-18-2001, 03:33 PM
  5. IPChains Help
    By nitewaryr in forum Security
    Replies: 1
    Last Post: 09-04-2001, 12:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •