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 30th October 2014
bforest bforest is offline
Port Guard
 
Join Date: Aug 2008
Location: East Coast, USA
Posts: 32
Default Dual network help

Hello All,

I have two separate networks attached to my FreeBSD Jail Host.

I do NOT wish to route between the two networks (admin & monitor).

I just want my jails to be on the Monitor network and the Jailhost on the Admin network.

* I can access 192.168.11.8 from outside its subnet.
* I can access any of the jails from hosts on their own subnet but...
* I can NOT access any of the jails from outside their subnet.

(everything was working before I moved em0 from 192.168.15. to 192.168.11.)

What am I doing wrong? How do I setup two separate default routes?

Code:
FROM /etc/rc.conf:
# Configuration - network
hostname="JailHost"

defaultrouter="192.168.11.1"
ifconfig_em0="inet 192.168.11.8 netmask 255.255.255.0"
##ifconfig_em1="inet 192.168.15.40 netmask 255.255.255.0"

static_routes="admin monitor"
route_admin=" -iface em0 -net 192.168.11.0/24  192.168.11.1"
route_monitor=" -iface em1 -net 192.168.15.0/24  192.168.15.1"

# Services
sshd_enable="YES"
zfs_enable="YES"

# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

# JAIL CONFIGURATION - see: /etc/jail.conf
jail_enable="YES"
ifconfig_em1_alias0="inet 192.168.15.100/32"  #www
ifconfig_em1_alias1="inet 192.168.15.120/32"  #mail
ifconfig_em1_alias2="inet 192.168.15.5/32"    #dns
ifconfig_em1_alias3="inet 192.168.15.7/32"    #ca

Last edited by bforest; 30th October 2014 at 11:36 PM.
Reply With Quote
  #2   (View Single Post)  
Old 31st October 2014
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

As there are not many FreeBSD user out here, you will have a greater chance of solving your issue, by posting your question in the official FreeBSD forums: forums.freebsd.org
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 1st November 2014
bforest bforest is offline
Port Guard
 
Join Date: Aug 2008
Location: East Coast, USA
Posts: 32
Default

Thanks J65nko,

I found the(an) answer to my issue which worked for me.

http://savagedlight.me/2014/03/07/fr...ocal-networks/

The solution in the link above requires modification to 3 files:

My new rc.conf is:
Code:
root@JailHost:~ # cat /etc/rc.conf
# Configuration - network
hostname="JailHost"

defaultrouter="192.168.11.1"
ifconfig_em0="inet 192.168.11.8 netmask 255.255.255.0"

##static_routes="admin monitor"
##See: /boot/loader.conf /etc/rc.local /etc/jail.conf

# Services
sshd_enable="YES"
zfs_enable="YES"

# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

# JAIL CONFIGURATION - see: /etc/jail.conf
jail_enable="YES"
ifconfig_em1_alias0="inet 192.168.15.100/32"  #www
ifconfig_em1_alias1="inet 192.168.15.120/32"  #mail
ifconfig_em1_alias2="inet 192.168.15.5/32"    #dns
ifconfig_em1_alias3="inet 192.168.15.7/32"    #ca
Reply With Quote
Reply

Tags
routes


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
PF Dual WAN Fail Over Issue (one box) alpha202ej OpenBSD Security 13 24th April 2012 08:39 PM
ATI Driver + Dual Monitor? kasumi OpenBSD General 16 1st October 2011 07:09 PM
Dual/Quad NIC schrodinger General Hardware 12 28th February 2009 11:27 PM
dual boot buba OpenBSD General 2 5th August 2008 11:32 AM
Dual WAN gateway. LordZ OpenBSD Security 2 2nd June 2008 09:00 AM


All times are GMT. The time now is 09:50 PM.


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