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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

lug-bg: IP Masquerading [2]


  • Subject: lug-bg: IP Masquerading [2]
  • From: neznaiko@xxxxxxxxx (neZnaiko)
  • Date: Wed, 9 Aug 2000 02:54:56 -0700 (PDT)



hi!

po povod vyprosa IP Masquerading sys EDNA mrejova
karta, eto i dop. informacia za tova kak izglejdat
neshtata pri men:

#konfigurirane na NIC
ifconfig eth0:0 A.B.C.d      netmask 255.255.255.240
up
ifconfig eth0:1 192.168.100.254     netmask
255.255.255.0  up

ifconfig eth0 up

route add default gw A.B.C.d1 netmask 0.0.0.0 metric 3

#----
#v rezultat eth0 izglejda taka:
eth0      Link encap:Ethernet  HWaddr
00:50:BA:CD:CB:D8
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:4684 errors:0 dropped:0
overruns:0 frame:0
          TX packets:1122 errors:0 dropped:0
overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xe400

eth0:0    Link encap:Ethernet  HWaddr
00:50:BA:CD:CB:D8
          inet addr:A.B.C.d  Bcast:A.B.C.255 
Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          Interrupt:10 Base address:0xe400

eth0:1    Link encap:Ethernet  HWaddr
00:50:BA:CD:CB:D8
          inet addr:192.168.100.254 
Bcast:192.168.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          Interrupt:10 Base address:0xe400            
                        

#a routing tablicata:
Kernel IP routing table
Destination     Gateway         Genmask         Flags
Metric Ref    Use Iface
A.B.C.D              0.0.0.0         255.255.255.240 U
    0      0        0 eth0
192.168.100.0   0.0.0.0         255.255.255.0      U  
  0      0        0 eth0
127.0.0.0            0.0.0.0         255.0.0.0        
      U     0      0        0 lo
0.0.0.0                A.B.C.d        0.0.0.0         
        UG    3      0        0 eth0

#setvane na ipchains 
ipchains -F
ipchains -X

ipchains -A forward -i         eth0:1 -d
192.168.100.0/24
ipchains -A forward -j MASQ -i eth0:0 -s
192.168.100.0/24 -d 0.0.0.0/0

ipchians -L -n

#i posle: rezultata ot  ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
target     prot opt     source               
destination           ports
-          all  ------  anywhere            
192.168.100.0/24      n/a
MASQ       all  ------  192.168.100.0/24     anywhere 
            n/a
Chain output (policy ACCEPT):                         
                        

#a eto i ot ipchains -vnL
Chain input (policy ACCEPT: 3282 packets, 463645
bytes):
Chain forward (policy ACCEPT: 4 packets, 240 bytes):
 pkts bytes target     prot opt    tosa tosx  ifname  
  mark       outsize  source               
destination           ports
    0     0 -          all  ------ 0xFF 0x00  eth0:1  
                      0.0.0.0/0           
192.168.100.0/24      n/a
    0     0 MASQ       all  ------ 0xFF 0x00  eth0:0  
                      192.168.100.0/24     0.0.0.0/0  
          n/a
Chain output (policy ACCEPT: 1980 packets, 196646
bytes):

#TOVA E! no i nikoe ot PC-tata v LAN-a ne izliza navyn
:(              

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
==================================================================
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



 

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

 

линукс за българи
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.