Visit Our UNIX and Linux User Community


Openbsd as gateway Problem


 
Thread Tools Search this Thread
Special Forums IP Networking Openbsd as gateway Problem
# 50  
Old 12-27-2007
Quote:
Originally Posted by Peter_APIIT
By the way, why openbsd need to manually configurate route and freebsd doesn't need it ? Am i correct ?
Shouldn't be, normally the case is if you statically configure then you need to set the default route, if you configure using DHCP it will tell you the router (and name server) to use.
# 51  
Old 12-27-2007
I check an articles mentioned that my option routers must same with interface address. IS it true ? Mine one is not same.
# 52  
Old 12-27-2007
Quote:
Originally Posted by Peter_APIIT
I check an articles mentioned that my option routers must same with interface address. IS it true ? Mine one is not same.
Right. Take this slowly.

1. There is the router address that your openbsd box will use as it's default gateway.

2. If the box is acting as a DHCP server then it needs to advertise it's own address as default router for use by a DHCP client, eg another machine that is getting all it's network config from your openbsd box.

So you really really need to get to understand IP routing.

Then you need to get your openbsd box working first, with *all* it's interfaces up.

Only, only then do you start trying to configure it as a dhcp server.

I feel like we are going round and round in circles because you want to just configure it all in one go without going through the step by step from the bottom to the top.

And by step by step I mean you configure one thing then confirm that it does the job that item was supposed to do, recycle the machine a couple of times and prove it's a persistent configuration, then move onto the next step.

You cannot trouble shoot a dhcp serving gateway it you don't understand IP networking.
# 53  
Old 12-27-2007
I want to troubleshoot it step by step but i have run out any idea. Please help me. What do to next ?
Thanks for your help.
# 54  
Old 12-27-2007
Complete and confirm this table, including correcting the unknowns.

Code:
Interface	subnet		netmask			IP		Notes

lo		127.0.0.1	255.255.255.255		127.0.0.1	loopback
rl0		192.168.1/24	255.255.255.0		192.168.1.x	external and to internet?
rl1		176.16.10/24	255.255.255.0		176.16.10.x	internal?
ral0		192.168.2/24	255.255.255.0		192.168.2.x	wireless?

what are the tunnels for, and why do you have a default gateway on it?

Describe in detail how you actually connect to the internet.

Describe exactly what will be on ral0 and rl1.
# 55  
Old 12-27-2007
Tun0 is a virtual interface that produce automatically by openbsd when i dialing PPPOE to my ISP. My connection detail is PPPOE 1mbps connection.
MOdem -> (rl0) OpenBSD(rl1 and ral0) -> laptop and desktop.
ral0 is used to connecto wireless and rl1 is to connect wired connection to openbsd.
I have a default route in the first in the routing table.
default 219.93.218.177 UGS 2 18802 - tun0
Thanks for oyur help. Your help is greatly appreciated by me and others.
# 56  
Old 12-27-2007
So what now isn't working?

Other machines on both rl1 and ral0 should now be using your machine as the gateway, they should do that be using the address that your openbsd machine has on the same interface that they are connected to.

Now do you have any NAT configured anywhere?

Previous Thread | Next Thread
Test Your Knowledge in Computers #855
Difficulty: Medium
JSX (JavaScript XML) is an extension to the JavaScript language syntax.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

2. IP Networking

Routing problem : two interfaces one gateway

hi folks, i have a horstbox-router with the following configuration. it has 4 ethernet ports from wich one (wan0) is configured as an external modem via dhcp. at this port/interface(wan0) it is connected with my home network (other switch). this configuration results in the following... (14 Replies)
Discussion started by: gencaslan
14 Replies

3. IP Networking

Small Problem about Default Gateway

I have Ubuntu linux Os with two eth cards. I can easily delete def gatewayg. But I can't add new one.. :confused::confused: When I run route-n: alperen@alperen-System-Product-Name:~$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use... (1 Reply)
Discussion started by: Mhnds
1 Replies

4. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

5. BSD

Xwindows Problem OPenBSD 4.6

Hi, I have OPENBSD 4.6 installed as a VM in Virtual Box on my Ubuntu 9.10 machine. Problem is that the XWindows will not start when I boot my OPENBSD VM. I am new to OPENBSD. How do I fix this problem? (5 Replies)
Discussion started by: mojoman
5 Replies

6. BSD

openbsd-pf

hello , I wondered if anyone could assist me in writing a simple packet filter firewall on my OpenBSD v4.5. All I intend doing is to have two firewalling machine on a separate network : 192.168.1.1 ext_if = xl0 (dhcp) // Internet interface int_if=xl1 // Internatl interface ... (0 Replies)
Discussion started by: mattjam
0 Replies

7. BSD

Trying to get into OpenBSD

I am an eight year Linux user and after getting into an argument with someone about OpenBSD overiding my theory that OS security is 50% OS and 50% admin skill, I decided to try OpenBSD for myself. I've tried BSDs before and haven't been able to get into them for day to dy use, but I am going to... (7 Replies)
Discussion started by: deckard
7 Replies

8. BSD

[OpenBSD] DNS startup problem

I have the DNS files set up on my OpenBSD 4.0 amd64 system however when I run named, I get the following error in my logs: Sep 23 10:43:03 grunty named: starting BIND 9.3.2-P1 Sep 23 10:43:03 grunty named: /etc/named.conf:25: change directory to '/var/named' failed: file not found Sep 23... (2 Replies)
Discussion started by: BOFH
2 Replies

9. BSD

OpenBSD : mount problem

hi I have two hhd's. One is primary disk which holds the OpenBSD system and the other is my download disk (disk2). I formatted disk2 in "ffs" type. And created a "disklabel", wd1a. The disklabel program says "No change made", but I can see the changes by "p" command. I cannot mount my disk2!... (1 Reply)
Discussion started by: fnoyan
1 Replies

10. UNIX for Dummies Questions & Answers

please help with openbsd 2.9

Please help. I have downloaded the openbsd 2.9 snapshot from ftp.openbsd.org. the following files were downloaded from the snapshot dir. ( the whole dir. was downloaded ) base29,bsd,bsd.rd,cdrom29.fs,cksum,comp29,etc29,all three floppy images,game29,index,install.ata,install.chs... (11 Replies)
Discussion started by: Blunt_Killer
11 Replies

Featured Tech Videos