Recommended Posts

hey!

 

I am just setting up an IP tables rule ( i really need a good book suggestion for iptables because I cant keep asking you guys/budman all the time)

where if the ip address is not 192.168.0.1 then follow a certain rule I already have the rule I want to be followed in place I just do not know how to do this if ip rule ;(

 

any help? links etc?

Link to comment
https://www.neowin.net/forum/topic/1225239-iptables-if-not-ip/
Share on other sites

If you know basic firewall rules and have basic understanding how firewall works, you can easily setup IPTables.

use vuurmuur to configure IPTables, its GUI or more like TUI for IPTables.

seeing is believing.

http://www.vuurmuur.org/trac/wiki/ScreenShots#Screenshots

  On 11/08/2014 at 09:27, Xahid said:

If you know basic firewall rules and have basic understanding how firewall works, you can easily setup IPTables.

use vuurmuur to configure IPTables, its GUI or more like TUI for IPTables.

seeing is believing.

http://www.vuurmuur.org/trac/wiki/ScreenShots#Screenshots

I understand the logic just not the code D: I would honestly rather script it than use a GUI, GUIs are for when I can use the command line and have the right to be lazy :P

The ! is how you invert something, this is standard across most anything not jut iptables. if you want your rule to be if the IP is not 192.168.0.1 then it would be be ! 192.168.0.1. if you want to say everything but a specific interface then something like !eth1

Have you looked at the man even?

http://linux.die.net/man/8/iptables

Here is good ref

http://shop.oreilly.com/product/9780596005696.do

hint.. maybe if you google for that there would be links to find it pdf.. just saying that might happen if you google..

  On 11/08/2014 at 12:30, BudMan said:

The ! is how you invert something, this is standard across most anything not jut iptables. if you want your rule to be if the IP is not 192.168.0.1 then it would be be ! 192.168.0.1. if you want to say everything but a specific interface then something like !eth1

Have you looked at the man even?

http://linux.die.net/man/8/iptables

Here is good ref

http://shop.oreilly.com/product/9780596005696.do

hint.. maybe if you google for that there would be links to find it pdf.. just saying that might happen if you google..

I went crazy googling :P I do google before I ask here I just dont know what to search half the time...

 

this is what I used in the end

 

A PREROUTING -i eth0 -d ! 192.168.0.1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

so you did this ?
http://lmgtfy.com/?q=not+or+invert+iptables
 

:shiftyninja: If you google the book I linked too, I don't know it might be available all over the place as a pdf for free - somethings are like that on the internet, free and everywhere is all I am saying ;)

  On 11/08/2014 at 12:44, BudMan said:

so you did this ?

http://lmgtfy.com/?q=not+or+invert+iptables

 

:shiftyninja: If you google the book I linked too, I don't know it might be available all over the place as a pdf for free - somethings are like that on the internet, free and everywhere is all I am saying ;)

I know it is free over the web and easy to find lol but everything i searched for this problem just kept coming up with things I did not need :( and besides I am still learning :D it helps me more if it is my own question atleast I wont have to ask this question again. when this is all over I might have to write a full squid guide lol with loads of different angles this system is menttaalll

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Or, they could really turn the table upside down and rename it in BINARY. 00011001
    • I have tried that registry 'trick' from that video already. It doesn't work at all in Win11 for me   Yes it's a 3rd party app... that I am only using because of Microsoft breaking user customization in Windows 11. So yes... the is a Windows 11 issue. As of now to me, Microsoft has made a huge mistake with this in Windows 11.   The current font option in Windows 11 are terrible. They are just missing. People that want to use their own computer the way they want to, they need to avoid 11.
    • It's been an age since I did desktop support, but here goes: You have an issue with Windows 11, which is fair.  You are using a freeware 3rd party app to make modifications to the default Windows 11.  Since an update, this 3rd party application no longer plays nice with Windows 11.  And this is somehow Windows 11's fault? Sorry, not buying that this is a Windows 11 problem... it's a customization issue that has just appeared, but standard 3rd party support.   Clearly you're upset.  You can't make Windows do anything, just like you can't make MacOS run Explorer or Linux run Nintendo games natively.  And I know people are going to say "sure, it's possible..." but those aren't defining elements of the OS.  You can't have animated backgrounds in Windows 11 natively -- so it's trash amirite??? I did quick searches about changing the default fonts and there are ways to do it, and clearly 3rd party freeware apps can do it (basically my guess is they're making registry changes on your behalf) and clearly they're having issue.   You can make your computer do a lot of things, but sometimes you get what you pay for. Did a quick search and don't see an easy option in Windows 10 either.  Some of these links - ironically - are for Windows 10.  They still apply. Here's a video tutorial of how it can be done without a 3rd party:   Same reference here with a bit more detail: https://www.howtogeek.com/716407/how-to-change-the-default-system-font-on-windows-10/ Once the font is chosen, the size can be changed via personalization from my understanding. Hope this helps.
  • Recent Achievements

    • Week One Done
      maimutza earned a badge
      Week One Done
    • Week One Done
      abortretryfail earned a badge
      Week One Done
    • First Post
      Mr bot earned a badge
      First Post
    • First Post
      Bkl211 earned a badge
      First Post
    • One Year In
      Mido gaber earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      488
    2. 2
      +FloatingFatMan
      261
    3. 3
      snowy owl
      244
    4. 4
      ATLien_0
      222
    5. 5
      Edouard
      187
  • Tell a friend

    Love Neowin? Tell a friend!