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

    • Gears of War: Reloaded multiplayer beta kicks off this weekend, here's how to get access by Pulasthi Ariyasinghe Microsoft announced Gears of War: Reloaded earlier this year, unveiling a complete remaster of the first game in the hit action franchise that lets players jump into the classic with a fresh coat of paint. Today during the Xbox Games Showcase, the $40 experience was given another look, and a couple of betas were revealed too. The multiplayer beta will be kicking off on June 13 and ending on June 15 as the first of the weekend access events. The next multiplayer beta will begin on June 20 and run through June 22. The first weekend will feature classic team deathmatch across Gridlock, Raven Down, and Gold Rush maps. Next, the second weekend is adding on the King of the Hill mode on the map Canals. Team deathmatch will still be running this weekend too, and Courtyard and War Machine will be added to the roster. Unfortunately, these aren't open betas, but Microsoft revealed three ways players can jump into the experience to try it out. First off, Gears of War: Ultimate Edition digital owners will receive an invite without having to do anything. All Xbox Game Pass Ultimate and PC Game Pass subscribers are gaining access for no extra cost too. Lastly, anyone who has pre-ordered Gears of War: Reloaded will gain access to the multiplayer beta as well. For those who missed it, the remaster is touting 4K 60FPS in the campaign, 120FPS in multiplayer, enhanced assets and effects, improved shadows, zero loading screens, crossplay, and more features. Check out our original coverage for all the information. Gears of War: Reloaded launches on PC, Xbox Series X|S, PlayStation 5, and Xbox Cloud Gaming on August 26, 2025. It will also be a day one release on Xbox Game Pass Ultimate and PC Game Pass subscriptions for no extra cost. Moreover, Gears of War: Reloaded will be a free upgrade to all Gears of War: Ultimate Edition owners. It needs to have been purchased prior to May 5, 2025 though.
    • My first step into the PC world from the Amiga world, a Cyrix 166. I am in no rush unless the PC fails, as long as it can still play the games I need it to play and maybe run Davinci resolve to render some video when the Mac is busy.
    • Knives are not banned, there are banned from being carried in public, which is a good thing. The Cybertruck is banned because it don't follow the U.K safety laws, Have a read of this https://www.forbes.com/sites/p...he-uk-due-to-safety-issues/
    • If nobody was using it. Then why specifically is it a shame? Windows needs be slimmer. Every feature like this is just more bloat
    • Invincible VS announced, a brutal 3v3 tag fighting game by former Killer Instinct developers by Pulasthi Ariyasinghe The Xbox Games Showcase showed off a brand-new fighting game incoming from the award-winning Invincible universe. Simply dubbed Invincible VS, the title will feature three versus three tag fighting with all sorts of heroes and villains from the franchise. Check out the announcement trailer above, which shows off some gameplay near the tail end of it. Published by Skybound Games and developed by Quarter Up, Invincible VS has a big focus on the brutality, much like its source material. There will be iconic arenas straight from the show, as well as a battle damage system to show off the carnage on the fighters themselves. "In Invincible VS, every move, every line of dialogue, every broken limb and bloodied mouth carries real cost and consequence—all building toward the bone-deep satisfaction of victory," said Invincible VS executive producer Mike Willette. "No tag fighting game has ever delivered this level of intensity and violence. This game is a love letter to the fighting game community, created by a team of passionate, experienced fans of the genre." While this is a brand-new studio that's taking on the project, it has been revealed that former members from the 2013 Killer Instinct are involved in the development. "I have said this before, and I’ll say it again: this is the most excited I’ve been about anything involving Invincible," said Invincible co-creator Robert Kirkman. "Invincible VS is crazy fun, fast, ferocious and dripping with the same over-the-top brutality that you’ll see in the comic book pages and on the show. It is a natural evolution of the franchise and it is everything that fans have been demanding for over a decade! This is without a doubt, probably the best superhero fighting game in the universe!" The title will have multiple game modes as well, including a campaign with an original story by the writer of the animated series, an arcade mode for skirmishes, and a training arena. As expected, competitive and casual online multiplayer will be available too. Invincible VS is coming out sometime in 2026 across PC, Xbox Series X|S, and PlayStation 5.
  • Recent Achievements

    • First Post
      George Almeyda earned a badge
      First Post
    • Reacting Well
      BlakeBringer earned a badge
      Reacting Well
    • Reacting Well
      Lazy_Placeholder earned a badge
      Reacting Well
    • Dedicated
      Epaminombas earned a badge
      Dedicated
    • Veteran
      Yonah went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      470
    2. 2
      +FloatingFatMan
      265
    3. 3
      ATLien_0
      235
    4. 4
      snowy owl
      219
    5. 5
      Edouard
      173
  • Tell a friend

    Love Neowin? Tell a friend!