Openbsd as gateway Problem


 
Thread Tools Search this Thread
Special Forums IP Networking Openbsd as gateway Problem
# 22  
Old 12-23-2007
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1b:11:5b:71:58 media: Ethernet autoselect (none) status: no carrier
inet 176.16.1.2 netmask 0xfff00000 broadcast 176.31.255.255
inet6 fe80::21b:11ff:fe5b:7158%rl1 prefixlen 64 scopeid 0x2

ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1c:10:e4:eb:0e groups: wlan media: IEEE802.11 autoselect mode 11g hostap statuc: active
ieee802.11: nwid xxx chan 11 bssid: lladdr nwkey xxx 100dBm
inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
inet6 fe80::21c:10ff:fee4:eb0e%ral0 prefixlen 64 scopeid 0x3
# 23  
Old 12-23-2007
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
enco: flags=0<> mtu 1536
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
groups: tun egress inet 60.48.182.211 --> 219.93.218.177 0xffffffff
I usign lynx text browser to post this. Sorry for any incovenience cause due to my pc has send to reapir.
# 24  
Old 12-23-2007
Quote:
Originally Posted by porter
post complete results of "ifconfig -a", it's difficult to see complete picture with fragmented postings.
I need to see the current state of play,

Code:
ifconfig -a

can you ping your router?

can you ping a device beyond your router?

Code:
$ ping www.unix.com
PING www.unix.com (81.17.242.186): 56 data bytes
64 bytes from 81.17.242.186: icmp_seq=0 ttl=41 time=415.7 ms
64 bytes from 81.17.242.186: icmp_seq=1 ttl=41 time=382.1 ms

# 25  
Old 12-23-2007
Network

Quote:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6


rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1b:11:66:02:da media: Ethernet autoselect (100baseTX full-duplex)
status: active inet6 fe80::21b:11ff:fe66:2da%rl0 prefixlen 64 scopeid 0x1
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255


rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1b:11:5b:71:58 media: Ethernet autoselect (none) status: no carrier
inet 176.16.1.2 netmask 0xfff00000 broadcast 176.31.255.255
inet6 fe80::21b:11ff:fe5b:7158%rl1 prefixlen 64 scopeid 0x2


ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:1c:10:e4:eb:0e groups: wlan media: IEEE802.11 autoselect mode 11g hostap statuc: active
ieee802.11: nwid xxx chan 11 bssid: lladdr nwkey xxx 100dBm
inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
inet6 fe80::21c:10ff:fee4:eb0e%ral0 prefixlen 64 scopeid 0x3


pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
enco: flags=0<> mtu 1536
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
groups: tun egress inet 60.48.182.211 --> 219.93.218.177 0xffffffff

I usign lynx text browser to post this. Sorry for any incovenience cause due to my pc has send to repair.


Code:
$ ping www.unix.com
PING www.unix.com (81.17.242.186): 56 data bytes
64 bytes from 81.17.242.186: icmp_seq=0 ttl=41 time=415.7 ms
64 bytes from 81.17.242.186: icmp_seq=1 ttl=41 time=382.1 ms

Network Structure :

Modem -> (rl0)Openbsd(rl1 ral0) -> desktop && laptop :

Bothe of the wired and wireless connection can get ip from openbsd router.

Wired Gateway ip is 176.16.1.1
Ping from desktop to openbsd : Result is request timeout.


Wireless Gateway is 192.168.2.1
Ping from desktop to openbsd : Result is request timeout also.



Wired Connection ip is 176.16.10.10
Ping from openbsd to desktop : Result is ok

Wireless Connection ip is 192.168.2.3
Ping from openbsd to laptop : Result is ok

Thanks for your hel.

Your help is greatly appreciated by me an others.
# 26  
Old 12-23-2007
It feels like progress...

What is the state of play with the openbsd to internet on rl0? Can you ping the modem? Can you ping 81.17.242.186 (www.unix.com)?

Can you get name resolving working.

Remember we want to get the internet side of things all working first.

However, on the desktop and laptop do their netmasks and subnet addresses match the same as what the openbsd box thinks they should be?

What do the laptop and desktop claim their default routes are?
# 27  
Old 12-23-2007
# 28  
Old 12-23-2007
Network

Quote:
Wired Connection ip is 176.16.10.10
Ping from openbsd to desktop : Result is ok

Wireless Connection ip is 192.168.2.3
Ping from openbsd to laptop : Result is ok

Sorry to post some incorrect information.

I can ping and browse unix.com with the gateway openbsd.
I have test it the result is not ok for both wireless and wired as well.

I try to disable the pf also the same.

The address from desktop and laptop is as desired from openbsd.


Openbsd cannot ping client and client cannot ping openbsd.


Below is netstat -r | less :

Quote:
Internet

Destination Gateway Flags Refs Use Mtu Interface
default 219.93.218.177 UGS 2 161 - tun0
localhost localhost UH 0 2 33224 lo0
176.16/12 link#2 UC 3 0 - rl1
176.16.1.1 link#2 UHRLc 0 9 - rl1
176.16.1.2 Hardware add UHLc 0 8 - lo0
176.16.10.10 Hardware add UHLc 1 26 - rl1
192.168.1/24 link#1 UC 1 0 - rl0
192.168.1.1 H.A UHLc 0 19 - rl0
192.168.2/24 link#3 UC 0 0 - ral0
219.93.218.177 H.A UH 1 0 1492 tun0


Quote:
176.16.1.2 Hardware add UHLc 0 8 - lo0
192.168.2/24 link#3 UC 0 0 - ral0
Why this two interface doesn't have G in its flags ?

This appear that the gateway is down.

/etc/sysctl.conf net.inet.ip.forwading=1 but
net.inet6.ip6.forwading=0;

A billion thanks for your help.

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

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
Login or Register to Ask a Question