|
Re: lug-bg: IP Masquerading [2]
- Subject: Re: lug-bg: IP Masquerading [2]
- From: stuckoff@xxxxxxxxxxxx (Stoian Mishev)
- Date: Thu, 10 Aug 2000 12:58:46 +0300 (EEST)
> > Iavno ne si prochel vnimatelno HOWTO-to.
> > Masqueradinga raboti samo s fizicheski interfeisi
> > (eth0, eth1 i t.n.).
> > Masqueradinga NE raboti s aliased interfeisi
> > (ethx:x).
> >
>
> chel sym go:
> http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO7.html
> v 7.25 Can IP Masquerade work with only ONE Ethernet
> network card (IP Aliasing)? pishe "YES and NO" - za
> "NO" - iasno :) vyprosa e kak stava "Yes" ::)))
>
> i po tochno kak stava tova koeto e dadeno kato
> preporyka tam: "you need to configure Linux to use the
> new interface (i.e. /dev/eth0:1, etc.). After that,
> you can treat it as a normal Ethernet interface with
> some restrictions like the one above. "???
>
/sbin/ifconfig eth0 A.B.C.d netmask 255.255.255.240
/sbin/ifconfig eth0:0 10.0.0.100
/sbin/route add default gw 195.138.149.136
## /etc/rc.d/rc.firewall
echo 1 > /proc/sys/net/ipv4/ip_forward
^^^^^^^^^^^^^^^^^^^mnoo wavna chast inyche nqma da imash forwarding
/sbin/ipchains -F
/sbin/ipchains -A forward -s 10.0.0.1 -d 0/0 -j MASQ
/sbin/ipchains -A forward -s 10.0.0.2 -d 0/0 -j MASQ
/sbin/ipchains -A forward -s 10.0.0.3 -d 0/0 -j MASQ
/sbin/ipchains -A forward -s 10.0.0.4 -d 0/0 -j MASQ
/sbin/ipchains -A forward -s 10.0.0.5 -d 0/0 -j MASQ
.........................
razbira se movesh da dadesh i :
/sbin/ipchains -A forward -s 10.0.0.0/24 -d 0/0 -j MASQ
nadqwam se da ti swyrshi rabota ... :))
tuckoff
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|