Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Exclamation How to block access to all ports and open access only for certain in i


    How to block access to all ports and open access only for certain in in iptables?
    I watched the instructions on the Internet, but I do not have internet after them. You need a working instruction for the command line

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    as with every question posted on a technical forum, we need more information.
    a hand-holding walk-through is out of the question anyway because "open access only for certain in in" is not specific enough.

    but what you want is a fairly basic requirement.
    people have asked & solved this before.

    PS:
    i use ufw, the uncomplicated firewall, a frontend to iptables.
    i recommend.

  3. #3
    Linux Newbie sarlacii's Avatar
    Join Date
    May 2005
    Location
    South Africa
    Posts
    223
    I'd go even further and say that more information besides, you need to Google this before you ask for help. It's a huge and detailed topic, and you haven't even stated the distro that you are using.

    But, depending on how much you want to learn, and how low level you want to go, programming iptables direct is a serious mission, and not recommended unless you learn how to do it properly. Use your distro's tool.

  4. $spacer_open
    $spacer_close
  5. #4
    Quote Originally Posted by sarlacii View Post
    I'd go even further and say that more information besides, you need to Google this before you ask for help. It's a huge and detailed topic, and you haven't even stated the distro that you are using.

    But, depending on how much you want to learn, and how low level you want to go, programming iptables direct is a serious mission, and not recommended unless you learn how to do it properly. Use your distro's tool.
    I wrote that I already went to Google and did everything according to the instructions, but after that I stopped working on the Internet.
    This manual: 1cloud.co.uk/help/linux/nastrojka_linus-firewall_iptables
    It's not programming and can not be complicated, but it's fiddling with it for 5 hours not everyone has the time!

  6. #5
    Quote Originally Posted by nihili View Post
    as with every question posted on a technical forum, we need more information.
    a hand-holding walk-through is out of the question anyway because "open access only for certain in in" is not specific enough.

    but what you want is a fairly basic requirement.
    lmddgtfy.net/?q=How%20to%20block%20access%20to%20all%20ports%20 and%20open%20access%20only%20for%20certain%20in%20 iptables]people have asked & solved this before.

    PS:
    i use ufw, the uncomplicated firewall, a frontend to iptables.
    i recommend.
    I did this:
    Code:
    iptables -P INPUT DROP
    iptables -P OUTPUT ACCEPT
    iptables -A INPUT --dport 80 -j ACCEPT
    And thenhere did I find an explanation of what to do if the network does not come out. No sites can be accessed until you disable these rules that I did.Therefore the question is more complicated and requires specialist

  7. #6
    Linux User
    Join Date
    Jul 2016
    Posts
    443
    -->
    Quote Originally Posted by LinuxerGeek View Post
    I wrote that I already went to Google and did everything according to the instructions, but after that I stopped working on the Internet. This manual: 1cloud.co.uk/help/linux/nastrojka_linus-firewall_iptables
    It's not programming and can not be complicated, but it's fiddling with it for 5 hours not everyone has the time!
    lets see if i get this right:
    • your time is SO VERY VALUABLE that you cant be bothered to read or learn something to accomplish a task that YOU WANT
    • but our time is NOT valuable at all and you want us to read the instructions FOR YOU, and tell you 'push the keys in this order and itll work the way you want",

    right? because thats what it seems like your saying
    Quote Originally Posted by LinuxerGeek
    And thenhere did I find an explanation of what to do if the network does not come out. No sites can be accessed until you disable these rules that I did.Therefore the question is more complicated and requires specialist
    if by 'specialist" you mean 'someone who bothered to read the instructions and learn something", then yes it does. so whats stopping you from being a 'specialist", besides the fact you dont want to read or learn?

    if your too lazy to do this then hire someone.

Posting Permissions

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