Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Static NAT (Summary), was Re: lug-bg: Problemi pri linux 2.4 i NAT sus iptables


  • Subject: Static NAT (Summary), was Re: lug-bg: Problemi pri linux 2.4 i NAT sus iptables
  • From: bombe@xxxxxxxxx (Vesselin Kotarov)
  • Date: Wed, 19 Dec 2001 11:39:16 +0200



Opitna postanowka:

machine_192.168.0.2 ---- eth1_linuxnatbox_eth0 --- machine_192.168.1.2
adresite na eth0 i eth1 sa syotwetno 192.168.1.1 i 192.168.0.1
linuxnatbox ima eth0:0 s ip 192.168.1.3

kato nachalo:
echo "1" > /proc/sys/net/ipv4/ip_forward (otne mi 15 minuti lutane ;-) )

a posle:
iptables -t nat -A POSTROUTING -s 192.168.0.2 -o eth0 -j SNAT --to
192.168.1.3
iptables -t nat -A PREROUTING -d 192.168.1.3 -i eth0 -j DNAT --to
192.168.0.2

ami towa e .. mashinata 192.168.0.2 ima ip 192.168.1.3 ... ottam natatyk
firewall rule-owete, koito shte q pazqt sa nechiq druga griva.

hope this helps.
bOmbe.

P.S. kolko gluposti izpisah zaradi edno elementarno reshenie ...

===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.