Article View: pl.comp.os.linux.debian
Article #282Re: siec
From: Piotr Jamrozik
Date: Mon, 03 Nov 2003 19:48
Date: Mon, 03 Nov 2003 19:48
29 lines
2027 bytes
2027 bytes
> 1) netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
222.222.222.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
192.168.50.0 0.0.0.0 255.255.255.0 U 40 0 0 eth1
0.0.0.0 222.222.222.1 0.0.0.0 UG 40 0 0 eth0
> 2) iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
LOG all -- 192.168.50.0/24 anywhere LOG level warning
DROP all -- 192.168.50.0/24 anywhere
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 192.168.50.0/24 anywhere
MASQUERADE all -- 192.168.50.0/24 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
> host piotr {
> fixed-address 192.168.50.100;
> hardware ethernet 12:34:56:78:90:12;
> }
>Sprawdź czy hot piotr może pingować 192.168.50.1
Bez problemu :)
Pozdrawiam Piotr
Technical Details
Message-ID:
<bo6bf0$719$1@SunSITE.icm.edu.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.gazeta.pl!news.icm.edu.pl!not-for-mailReferences:
<bo3nj4$78c$1@SunSITE.icm.edu.pl> <slrnbqaroc.hjf.eloy@fargo.cgs.pl> <bo41o2$4o5$1@SunSITE.icm.edu.pl> <slrnbqc2hm.b45.eloy@fargo.cgs.pl> <bo5tk6$2u7$1@SunSITE.icm.edu.pl> <slrnbqd68c.60l.eloy@fargo.cgs.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.gazeta.pl!news.icm.edu.pl!not-for-mail From: "Piotr Jamrozik" <jamp@jamrozik.toya.net.pl> Newsgroups: pl.comp.os.linux.debian Subject: Re: siec Date: Mon, 3 Nov 2003 20:48:47 +0100 Organization: http://news.icm.edu.pl/ Lines: 32 Message-ID: <bo6bf0$719$1@SunSITE.icm.edu.pl> References: <bo3nj4$78c$1@SunSITE.icm.edu.pl> <slrnbqaroc.hjf.eloy@fargo.cgs.pl> <bo41o2$4o5$1@SunSITE.icm.edu.pl> <slrnbqc2hm.b45.eloy@fargo.cgs.pl> <bo5tk6$2u7$1@SunSITE.icm.edu.pl> <slrnbqd68c.60l.eloy@fargo.cgs.pl> NNTP-Posting-Host: staticline594.toya.net.pl X-Trace: SunSITE.icm.edu.pl 1067888928 7209 217.113.228.19 (3 Nov 2003 19:48:48 GMT) X-Complaints-To: abuse@icm.edu.pl NNTP-Posting-Date: Mon, 3 Nov 2003 19:48:48 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit