Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nat and Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
zubator
Apprentice
Apprentice


Joined: 16 Sep 2004
Posts: 174
Location: Moscow

PostPosted: Sat Aug 19, 2006 11:00 am    Post subject: nat and Gentoo Reply with quote

епы рАуэ.

╦эууБАО ъЮчяшуэп ъчАшу чящчршущьО зчщДьсЦЮпФьчщщКЕ Дпышчр тшО АуБь ЮпщЛХу ЮпячБпшч рАу чз, рччяИу щу ъчыэЦ р Гуэ БЮпяшп.
╦эууБАО шьщЦзА АуЮруЮ А трЦэО АуБурЦЕпэь ь ъЮчзАь АуЮруЮ. ╣Ашь ЮпячБп ьтуБ ГуЮув ъЮчзАь АуЮруЮ, Бч рАу чз, ьщуБ ЮпячБпуБ ь рАу впэуГпБушЛщч, щч уАшь О ЕчГЦ рКыБь р ьщуБ щп ъЮОэЦН, Бч Дьс, счрчЮьБ ГБч АуБЛ щу тчАБЦъщп.

emerge --sync
>>> Starting rsync with rsync://140.211.166.165/gentoo-portage...
>>> Checking server timestamp ...
rsync: failed to connect to 140.211.166.165: Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8]

╫пАБЮчызь:
ДчЮрпЮт рзшНГущ

ДчЮрпЮт А эчусч пыъьХщьзп ЮпвЮуХущ

щпАБЮчызь iptables(рвОБ ьв rules-save) (eth0 - рщуХщьы ьщБуЮДуыА, eth1 - рщЦБЮущщьы)

*nat
:PREROUTING ACCEPT [234:13742]
:POSTROUTING ACCEPT [172:10646]
:OUTPUT ACCEPT [104:6257]
[0:0] -A POSTROUTING -s 192.168.0.0/255.255.0.0 -o eth0 -j SNAT --to-source EXT_IP
COMMIT
# Completed on Sat Aug 19 12:54:14 2006
# Generated by iptables-save v1.3.5 on Sat Aug 19 12:54:14 2006
*mangle
:PREROUTING ACCEPT [13141:5653648]
:INPUT ACCEPT [9861:4731842]
:FORWARD ACCEPT [3279:921567]
:OUTPUT ACCEPT [11492:5883260]
:POSTROUTING ACCEPT [14758:6804203]
COMMIT
# Completed on Sat Aug 19 12:54:14 2006
# Generated by iptables-save v1.3.5 on Sat Aug 19 12:54:14 2006
*filter
:INPUT ACCEPT [6:1038]
:FORWARD ACCEPT [341:23505]
:OUTPUT ACCEPT [11492:5883260]
[5386:1069525] -A INPUT -s 192.168.0.0/255.255.0.0 -i eth1 -j ACCEPT
[0:0] -A INPUT -s 127.0.0.1 -i lo -j ACCEPT
[0:0] -A INPUT -s EXT_IP -i lo -j ACCEPT
[4468:3661239] -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
[0:0] -A FORWARD -s 192.168.2.86 -p tcp -m tcp --dport 80 -j ACCEPT
[0:0] -A FORWARD -s 192.168.2.39 -p tcp -m tcp --dport 80 -j ACCEPT
[0:0] -A FORWARD -s 192.168.3.86 -p tcp -m tcp --dport 80 -j ACCEPT
[0:0] -A FORWARD -s 192.168.33.33 -p tcp -m tcp --dport 80 -j ACCEPT
[1:48] -A FORWARD -s 192.168.40.122 -p tcp -m tcp --dport 80 -j ACCEPT
[0:0] -A FORWARD -s 192.168.0.22 -p tcp -m tcp -j ACCEPT
[0:0] -A FORWARD -s 192.168.40.122 -p tcp -m tcp --dport 80 -j ACCEPT
[2924:897390] -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
[0:0] -A FORWARD -s 192.168.4.107 -p tcp -m tcp --dport 20:65500 -j ACCEPT
[0:0] -A FORWARD -p tcp -m tcp --dport 3389 -j ACCEPT
[0:0] -A FORWARD -s 192.168.4.107 -p udp -m udp -j ACCEPT
[13:624] -A FORWARD -p tcp -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Sun Aug 20, 2006 7:14 am    Post subject: Re: nat and Gentoo Reply with quote

zubator wrote:
emerge --sync
>>> Starting rsync with rsync://140.211.166.165/gentoo-portage...
>>> Checking server timestamp ...
rsync: failed to connect to 140.211.166.165: Network is unreachable (101)
rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8]

Настройки:
Форвард разрешен

либо форвард все-таки не разрешен, либо на машине с которой выходишь дефолт гейтвей не прописан...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum