Linux / UNIX Tech Support Forum
This is a discussion on ipfw firewall invert / except rule within the Networking, Firewalls and Security forums, part of the Mastering Servers category; Hi I want to add a rule with except symbol. e.g. ipfw add 100 fwd 127.0.0.1,8080 tcp from any (except ...
|
|||||||
| Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
I want to add a rule with except symbol. e.g. ipfw add 100 fwd 127.0.0.1,8080 tcp from any (except 127.0.0.1) to any dst-port 80 What will be the correct rule?? Please help... |
| Sponsored Links | ||
|
|
|
|||
|
Hi.
at last i found the solution. Here is the command Code:
ipfw add 100 fwd 127.0.0.1,8080 tcp from any to 10.10.10.1 dst-port 80 in recv fxp0 fxp0 is the network card you're redirecting the port 80 traffic on |
|
||||
|
You could have also used skipto. E.g.
Code:
ipfw add 100 skipto 200 ip4 from 1.2.3.4 to any
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| firewall , freebsd firewall , ipfw , ipfw fwd , ipfw skipto |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OPEN BSD 3.9 Firewall | HawaiiMan08 | All about FreeBSD/OpenBSD/NetBSD | 3 | 02-08-2008 01:48 PM |
| creating firewall | ramsatpm | Networking, Firewalls and Security | 1 | 28-03-2008 09:15 AM |
| squid without firewall | meenal | Networking, Firewalls and Security | 1 | 29-10-2007 03:54 PM |
| ipfw: getsockopt(IP_FW_GET): Protocol not available | raj | All about FreeBSD/OpenBSD/NetBSD | 1 | 08-07-2007 01:31 PM |
| Spamassassin URI rule not working properly | diptanjan | Mail Servers | 2 | 26-06-2007 11:11 AM |