Date: Wed, 21 Apr 1999 15:09:58 -0400 From: Jeff Evans <evansj@state.mi.us> To: freebsd-net@freebsd.org Subject: help with alias routing (source address) Message-ID: <19990421150958.62240@listserv.mda.state.mi.us>
next in thread | raw e-mail | index | archive | help
I've been able to setup an alias IP-address for my FreeBSD box, but I've been unable to force it to use the alias when communicating with a specific ip-address. I'm trying to setup a freebsd to run squid in httpd-accelerator mode. Long story short, I'd like to force communication to a specific address to originate from the alias ip-address. Here's my current setup: browser x.x.x.x <---> x.x.x.54 FreeBSD/Squid x.x.x.54 <-> x.x.x.35 Real web browser x.x.x.x <---> x.x.x.54 FreeBSD/Squid x.x.x.55 <-> x.x.x.35 Real web Currently both the FreeBSD and Web server are on the same subnet, but this might change. I've played around with some route commands, but haven't found the magic one yet. I'm also guessing putting in a seperate NIC for the other ip-address might be the magic ticket also (along with static routes). I really appreciate any help offered. This is going to a good cause, getting rid of yet another Micro$oft server. -Jeff - Jeff Evans evansj@state.mi.us * Michigan Dept. of Agriculture - http://www.mda.state.mi.us/ ******************************************************************* Lots and Lots of info on current setup (sorry if this is too much). ******************************************************************* #[ROOT] ifconfig ie0 alias 167.240.254.55 netmask 0xffffffff #[ROOT] netstat -ran Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 167.240.254.2 UGSc 11 0 ie0 127.0.0.1 127.0.0.1 UH 0 315 lo0 167.240.254/24 link#2 UC 0 0 ie0 167.240.254.2 0:0:c:7:ac:1 UHLW 12 0 ie0 1171 167.240.254.35 0:80:5f:ea:91:9b UHLW 0 2 ie0 897 167.240.254.55/32 link#2 UC 0 0 ie0 #[ROOT] ifconfig -a lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 ie0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 167.240.254.54 netmask 0xffffff00 broadcast 167.240.254.255 inet 167.240.254.55 netmask 0xffffffff broadcast 167.240.254.55 ether 00:aa:00:18:14:7a tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 #[ROOT] uname -a FreeBSD listserv.mda.state.mi.us 3.0-RELEASE FreeBSD 3.0-RELEASE #2: Mon Jan 4 11:21:08 EST 1999 root@fubar.cl.msu.edu:/usr/src/sys/compile/fubar i386 #[ROOT] sysctl -a | grep net net.local.stream.sendspace: 8192 net.local.stream.recvspace: 8192 net.local.dgram.maxdgram: 2048 net.local.dgram.recvspace: 4096 net.local.inflight: 0 net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 1024 net.inet.ip.portrange.last: 5000 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 net.inet.ip.forwarding: 0 net.inet.ip.redirect: 1 net.inet.ip.ttl: 64 net.inet.ip.rtexpire: 3600 net.inet.ip.rtminexpire: 10 net.inet.ip.rtmaxcache: 128 net.inet.ip.sourceroute: 0 net.inet.ip.intr_queue_maxlen: 50 net.inet.ip.intr_queue_drops: 0 net.inet.ip.accept_sourceroute: 0 net.inet.ip.fastforwarding: 0 net.inet.ip.subnets_are_local: 0 net.inet.icmp.maskrepl: 0 net.inet.icmp.bmcastecho: 0 net.inet.tcp.rfc1323: 0 net.inet.tcp.rfc1644: 0 net.inet.tcp.mssdflt: 512 net.inet.tcp.rttdflt: 3 net.inet.tcp.keepidle: 14400 net.inet.tcp.keepintvl: 150 net.inet.tcp.sendspace: 16384 net.inet.tcp.recvspace: 16384 net.inet.tcp.keepinit: 150 net.inet.tcp.log_in_vain: 0 net.inet.tcp.delayed_ack: 1 net.inet.tcp.pcbcount: 12 net.inet.tcp.always_keepalive: 0 net.inet.udp.checksum: 1 net.inet.udp.maxdgram: 9216 net.inet.udp.recvspace: 41600 net.inet.udp.log_in_vain: 0 net.inet.raw.maxdgram: 8192 net.inet.raw.recvspace: 8192 net.link.generic.system.ifcount: 6 net.link.ether.inet.prune_intvl: 300 net.link.ether.inet.max_age: 1200 net.link.ether.inet.host_down_time: 20 net.link.ether.inet.maxtries: 5 net.link.ether.inet.useloopback: 1 net.link.ether.inet.proxyall: 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990421150958.62240>