Re: lug-bg: aDSL+SQUID [in reply to Danail Petrov]
- Subject: Re: lug-bg: aDSL+SQUID [in reply to Danail Petrov]
- From: gggg ggg <gashti_dolu@xxxxxxxxx>
- Date: Wed, 27 Apr 2005 08:01:15 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Dido ,mersi za otgovora , no vapreki perfektnoto ti
razjasnenie ima oshte spanki:
variant 1: za squid.conf
tcp_outgoing_address 192.168.1.2
samo go probwal otdavna - ne raboti (neznam zashto)
variant 2: prili4a na rabotesht no za jalost na tazi
mashina niama iptables, ima samo ipchains i
ip-route2,kato za ip-route2 neznam dali raboti.
reshenieto javno shte triabwa da e na baza ipchains.
o4akvam idei.
g.
--- Danail Petrov <oneofus@xxxxxxxxxxxxx> wrote:
> gggg ggg wrote:
>
> >zdraveite,
> >problema e slednia:
> >imam linux box s niakolko mrejarki na nego.
> >edna ot tiah e 192.168.1.2 i na neja e zaka4en aDSL
> na
> >BTK koito e 192.168.1.1
> >default GW mi e realen IP ot druga mreja
> >imam nujda ot pomosht za 2 neshta:
> >1. kak da nakaram squida da praboti prez DSL-a, a
> ne
> >prez default GW
> >
> >
> Вариант 1.
squid.conf:
> tcp_outgoing_address x.x.x.x #
където
> х.х.х.х е
адреса
който
> си
получил
от бтк
> Вариант 2.
> iptables -t mangle -I PREROUTING -p tcp
> --dport 80 -j MARK
> --set-mark 80
> echo 240 BTK >>
> /etc/iproute2/rt_tables
> ip ru a fwmark 80 t BTK
> ip r a t BTK default via 192.168.1.1
>
>
> >2. kak da nakaram vsi4ki paketi ot mreja
> 192.168.20.0
> >da izlizat prez DSL-a ,osven ako ne otivat kam
> >localnite mreji varzani za linuxa ?
> >
> >
> #Приемам
че
локалните
ти мрежи
са 192.168.0.0/16 ,
> 10.0.0.0/8 само
за да
> бъде по
ясен
примера
ми.
> echo 245 private >>
> /etc/iproute2/rt_tables
> ip ru a from 192.168.20.0/24 table private
> ip r a t private 10.0.0.0/8 via dev ethX
>
> ip r a t private 192.168.0.0/16 via dev
> ethX
> ip r a t private default via 192.168.1.1
>
>
>
> >blagodaria predvaritelno
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|