FreeBSD Routing problem

  • iyanski
  • Born
  • Born
  • iyanski
  • Posts: 2

Post 3+ Months Ago

guys,

i tried to route my internal network to the external network. these are the things i did.

i have 2 network interfaces xl0 and vl0
$/stand/sysinstall
then i enable gateway, routed with -q flags
default router is 192.168.105.1 that runs in openbsd
router_flags="-q"
router="/sbin/routed"
router_enable="YES"
gateway_enable="YES"

then in add net.inet.ip.forwarding=1 in /etc/sysctl.conf

internal network is 192.168.0

but still i can't browse the internet from the internal network. any piece of advice or i'm missing something...

thnx..

:(
ian
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

By "external network" you mean internet space? So you are trying to go from non-internet addressable space to internet addressable?
You have to run natd, network address translation daemon.

Or maybe I am misunderstanding?

Cheers.
  • iyanski
  • Born
  • Born
  • iyanski
  • Posts: 2

Post 3+ Months Ago

natd and firewall is running.. do i need tos etup squid?
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Well, you have natd running, but have you configured it? :)
Right now it probably has
Code: [ Select ]
interface <your ext if>
use_sockets yes
same ports yes
  1. interface <your ext if>
  2. use_sockets yes
  3. same ports yes


Or something close to that, however, you need to nat the external connection.

Code: [ Select ]
redirect_port tcp <internal ip of web server>:80     80
redirect_port tcp <internal ip of web server 2 -- or 1>:8080     8080
  1. redirect_port tcp <internal ip of web server>:80     80
  2. redirect_port tcp <internal ip of web server 2 -- or 1>:8080     8080


That should do it.

Cheers.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 43 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.