12-28-2007
Quote:
Originally Posted by
Peter_APIIT
Desktop ip : 176.16.10.10 DG : 176.16.10.1 Is it something like thisa s below :
route add 176.16.10.10 176.16.10.1 first ip is destination and second is the gateway. Am i correct ? Why u worreid about NAT since this is support by pf. BY the way, a billion thanks for your help.
I'm sure NAT may work for the openbsd box, does not mean it will work for everyone else.
For the desktop you should be setting the default gateway which is nomally something like
route add default gateway-ip
or
route add 0.0.0.0 gateway-ip
what kind of desktop is it you are doing this on?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. BSD
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
3. BSD
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
4. BSD
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
5. BSD
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
6. BSD
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
7. Linux
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
8. IP Networking
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
9. IP Networking
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
10. UNIX for Beginners Questions & Answers
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
route(8c) route(8c)
Name
route - manually manipulate the routing tables
Syntax
/etc/route [ -f ] [ -n ] command args ]
Description
The program is used to manipulate the network routing tables manually. However, normally it is not needed, as the system routing table
management daemon, should tend to this task.
The program accepts two commands: add, to add a route and delete, to delete a route.
All commands have the following syntax:
/etc/route command [ net | host ] destination gateway [ metric ]
In this syntax, destination is a host or network for which the route is to, gateway is the gateway to which packets should be addressed,
and metric is an optional count indicating the number of hops to the destination. The metric is required for add commands. It must be
zero if the destination is on a directly-attached network, and nonzero if the route utilizes one or more gateways.
When adding a route with metric 0, the gateway given is the address of this host on the common network, indicating the interface to be used
for transmission. Routes to a particular host are distinguished from routes to a network by interpreting the Internet address associated
with destination. The optional keywords net and host force the destination to be interpreted as a network or host, respectively. If the
destination has a local address part of INADDR_ANY, then the route is assumed to be to a network. Otherwise, it is presumed to be a route
to a host. If the route is to a destination connected via a gateway, the metric should be greater than 0. All symbolic names specified
for a destination or gateway are looked up first as a host name using If this lookup fails, is then used to interpret the name as that of a
network.
The command uses a raw socket and the SIOCADDRT and SIOCDELRT ioctls to do its work. As such, only the superuser can modify the routing
tables.
Options
-f Flushes the routing tables of all gateway entries. If is used with one of the commands described above, the tables are flushed prior
to the command's application.
-n Prevents attempts to print host and network names symbolically when reporting actions.
Restrictions
The change operation is not implemented. Therefore, you should first add the new route, and then delete the old one.
Diagnostics
add [host | network] %s: gateway %s flags %x"
The specified route is being added to the tables. The values printed are from the routing table entry supplied in the ioctl call. If the
gateway address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically as
well as symbolically.
delete [ host | network] %s: gateway %s flags %x
The specified route is being deleted from the tables. The values printed are from the routing table entry supplied in the ioctl call. If
the gateway address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically
as well as symbolically.
%s %s done
When the flag is specified, each routing table entry that is deleted is indicated with a message of this form.
Network is unreachable
An attempt to add a route failed because the gateway listed was not on a directly-connected network. The next-hop gateway must be given.
not in table
A delete operation was attempted for an entry which was not present in the tables.
routing table overflow
An add operation was attempted, but the system was low on resources and was unable to allocate memory to create the new entry.
See Also
intro(4n), routed(8c)
route(8c)