LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-14-2004, 03:18 PM   #1
Mikessu
Member
 
Registered: Sep 2003
Distribution: Gentoo, FreeBSD 5.1
Posts: 122

Rep: Reputation: 15
FreeBSD firewall and dynamic IP-address


I have just installed FreeBSD 4.9 and got it somehow working as router. Now I'd like to get firewall working and I've read this manual: http://www.acme.com/firewall.html but I'm stuck with the firewall configs. It says I should define IP-address but I dont know what to put there because my IP address changes every time I connect internet.

Code:
        
# set these to your outside interface network and netmask and ip
        oif="ep0"
        onet="192.0.2.0"
        omask="255.255.255.0"
        oip="192.0.2.1"
 
Old 04-14-2004, 04:38 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
http://www.roq.com/bsd/

Hope this helps.
 
Old 04-15-2004, 03:42 AM   #3
John5788
Member
 
Registered: Feb 2004
Location: 127.0.0.1
Distribution: Gentoo
Posts: 129

Rep: Reputation: 16
or this guide i wrote: http://forums.x5788.net/index.php?showtopic=66

it says for 5.1, but it should work with 4.9 as well.
 
Old 04-19-2004, 10:33 AM   #4
Mikessu
Member
 
Registered: Sep 2003
Distribution: Gentoo, FreeBSD 5.1
Posts: 122

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Dead Parrot
http://www.roq.com/bsd/
I installed this and now it works well but I haven't get dcgui-qt work in active mode (It is a p2p program that requires port 9176 tcp to download files and 9176 udp to search files).

I have added following lines to ipf.rules

Quote:
pass in quick on tun0 proto tcp from any to any port = 9176 flags S keep frags keep state
pass in quick on tun0 proto udp from any to any port = 9176 flags S keep frags keep state
and following lines to ipnat.rules

Quote:
rdr tun0 0.0.0.0/0 port 9176 -> 192.168.0.4 port 9176 tcp
rdr tun0 0.0.0.0/0 port 9176 -> 192.168.0.4 port 9176 udp
Downloading files works well but I can't use search.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 10: dynamic IP address detection sso Slackware 1 10-20-2004 05:59 PM
Fix ip address vs Dynamic ip address yenonn Linux - Networking 5 04-13-2004 07:25 AM
setting up ftp with a dynamic IP address jdolluc Linux - Networking 5 08-26-2003 10:53 PM
Script to capture dynamic IP address scon Linux - General 4 02-21-2003 03:30 AM
dynamic IP address acid_kewpie Linux - Networking 4 09-13-2001 02:53 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration