BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 26th, 2002, 10:35 PM
preemi preemi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Chicago
Posts: 81 preemi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
problem with firewall (nat.conf) on obsd

ok i am not a openbsd god but here is my setup

i am connected to a dhcp server via my cable company. from the modem is my router (openbsd) and that is connected to my two macs and freebsd. all packets are directed to obsd (192.168.1.1) and everything passes through the gateway fine and are translated to my ip.

in my nat.conf i have rules like:

rdr on rl1 proto tcp from any to (ip here) port 80 -> 192.168.1.3 port 80 (freebsd)
rdr on rl1 proto tcp from any to (ip here) port 6700 -> 192.168.1.2 port 6700

*6700 is for carracho (kinda like ftp)

all packets are going out through the gateway and are working fine but when you try to access my ip the packets are not being directed to their destinations.

anyone know whats happening?

thanks a lot
kevin

Reply With Quote
  #2  
Old July 27th, 2002, 05:53 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> in my nat.conf i have rules like

Your nat rule was missing. Put the following above all of your rdr rules:
Code:
nat on rl0 from 192.168.1.0/24 to any -> rl0
where rl0 is your External NIC.

Quote:
but when you try to access my ip the packets are not being directed to their destinations

If you are referring to yourself (packets originating from your 192.168.1.0/24) then that's the way it is no matter what NAT software you are using. Start here to see the most asked question on IPF mailing list.

>> anyone know whats happening?

If that's not the case, TELL US YOUR IP else how do we blindly test it for you without knowing your IP?

BTW, network cards (namely Dlink ones) that use vr or rl are not compatible with any *BSDs. Just exchange them or use them for Windows/Linux, not *BSDs. Because DLink makes the worst PCI network cards on earth. When you see Realtek chipset, don't use it. YOU ARE WARNED!.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > problem with firewall (nat.conf) on obsd


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway