LinuxQuestions.org
Visit Jeremy's Blog.
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 10-27-2003, 07:16 PM   #1
Laplace
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Rep: Reputation: 0
netbsd ipnat trouble


q1.
#!/sbin/ipnat -f -
#
# THIS EXAMPLE IS WRITTEN FOR IP FILTER 3.3
#
# ppp0 - (external) PPP connection to ISP, address a.b.c.d/32
#
# ed0 - (internal) network interface, address w.x.y.z/32
#
# if we get a different dialup IP address each time, then we would use:
#
#map rtk0 192.168.0.0/24 -> 0/32 proxy port ftp ftp/tcp
map rtk0 192.168.0.0/24 -> 0/32 portmap tcp/udp 20000:60000
map rtk0 192.168.0.0/24 -> 0/32
rdr rtk0 0.0.0.0/0 port 1080 -> 192.168.0.10 port 1080 tcp
#rdr rtk1 0.0.0.0/0 port 80 -> 192.168.0.1 port 3128 tcp
#rdr tun0 192.168.0.1/32 port 80 -> 192.168.0.1 port 80 tcp
#rdr tun0 0.0.0.0/0 port 80 -> 192.168.0.1 port 3128 tcp



I found /etc/ipnat.conf,


I tried to locate the task and want to stop ( ps -aux).


I do not understand this NAT completed, can you help?


I understand the ISP router is 192.168.20.1

the netbsd is 192.168.0.1 and freebsd ( fileserver) 192.168.0.10

the rest of the pc is dhcp.

what happened from external, I can ftp into the fileserver while I can't ssh either servers.

The netbsd is installed with IPNAT, hylafax and imap and at the same time, it has two serial ports, I guess one is for hylafax and other one is for dial in in time of "remote administration".


The isp router is pointed by a SINGLE WAN IP only.


I know I am poor in english to need time to understand everything.

please help me!
 
Old 11-02-2003, 05:24 PM   #2
donniejones18
LQ Newbie
 
Registered: Jun 2001
Posts: 21

Rep: Reputation: 15
Hello.

I've not used NetBSD before, but I've done IPNAT in freebsd.
I have written a small howto for FreeBSD NAT that may be useful for you.
http://www.darthik.com -- go to the community based howtos, then to the howto listings, and you will find my FreeBSD Router/NAT howto.

Hope this helps.

Sorry, it is hard to understand what your problem is from your post....

Last edited by donniejones18; 11-02-2003 at 05:25 PM.
 
  


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
ipf/ipnat emule freebsd = the 1st flying computer sk8o *BSD 3 04-13-2008 06:20 PM
NetBSD tylor *BSD 5 05-13-2005 11:26 AM
FreeBSD v NetBSD servnov *BSD 5 09-07-2004 09:05 PM
bandwidth limiting with ipnat musaleem Linux - Networking 0 04-14-2004 05:11 AM
Help with IPNAT setup on OpenBSD 3.4 IMNOboist *BSD 2 12-29-2003 04:47 PM

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

All times are GMT -5. The time now is 01:11 AM.

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