DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th May 2008
Johnny2Bad Johnny2Bad is offline
Port Guard
 
Join Date: May 2008
Posts: 21
Unhappy ipfw question

Hi,
I'd like to enable communication through port 59893 in both directions using ipfw and am having difficulty in implementing it. I would appreciate any help you guys could offer.

Thanking you in advance,
Jonathan.
Reply With Quote
  #2   (View Single Post)  
Old 20th May 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default

Have you read : http://www.freebsd.org/doc/en_US.ISO...alls-ipfw.html


The rules are simply constructed like this
CMD RULE_NUMBER ACTION LOGGING SELECTION STATEFUL

as said in the handbook, an example is

ifpw -q add 00200 allow tcp from any to any 80 out via dc0 setup keep-state
Reply With Quote
  #3   (View Single Post)  
Old 21st May 2008
Johnny2Bad Johnny2Bad is offline
Port Guard
 
Join Date: May 2008
Posts: 21
Thumbs down Getting frustrated

Hi,
I decided to turn off the firewall to see whether port 59893 could get through, but still no luck. So I figured it was a natd issue, I need to forward all packets on that port to/from 192.168.0.1 on my private network. So I used the following.

Code:
natd -redirect_port tcp 192.168.0.1:59893 59893
natd -redirect_port udp 192.168.0.1:59893 59893
To each of these commands I got the following message...
natd:instance deafult:aliasing address not given

I added both tcp and udp because I do not know what protocols the program in question uses ie utorrent.

Could someone please point me in the right direction?

Thanking you in advance,
Jonathan.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ipfw ruleset double check l2fl2f FreeBSD Security 3 26th March 2009 06:32 AM
how to configure ipfw with 4 modems??? m4st3rcr4zy FreeBSD General 0 13th February 2009 06:26 AM
looking for good ipfw resources dk_netsvil General software and network 0 15th August 2008 04:05 PM
ipfw rules not behaving Weaseal FreeBSD Security 5 13th August 2008 01:22 PM
ipfw destination nat problem mitak FreeBSD General 2 15th May 2008 02:36 PM


All times are GMT. The time now is 06:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick