找回密码
 注册
查看: 607|回复: 4

重编内核后的一个问题。

[复制链接]
发表于 2004-7-7 08:49:28 | 显示全部楼层 |阅读模式
请各位大虾帮帮忙。。为何每次我在DEBIAN 上安装好后做了iptables NAT后
都能把所有机器共享上网。。。。但是再重编内核后就是怎么也不能上共享上网。
好像iptables NAT不起反应了。。。我不知道在重编内核是不是什么东东少编了进去但是我IPTABALES应该是选了啊。。。不知道是不是还要把哪一项在选进去
   <*> Packet socket                                               
         [ ]   Packet socket: mmapped IO                                 
          < > Netlink device emulation                                    
         
  • Network packet filtering (replaces ipchains)               
              [ ]   Network packet filtering debugging (NEW)                  
              [ ] Socket Filtering                                          
             <*> Unix domain sockets                                       
             
  • TCP/IP networking                                          
             
  •    IP: multicasting                                         
              [ ]   IP: advanced router                                       
              [ ]   IP: kernel level autoconfiguration                        
              < >   IP: tunneling                                             
             < >   IP: GRE tunnels over IP                                   
              [ ]   IP: multicast routing                                    
              [ ]   IP: TCP Explicit Congestion Notification support         
              [ ]   IP: TCP syncookie support (disabled per default)         
                IP: Netfilter Configuration  --->                                       ---                                                            
             < > The IPX protocol                                            
             < > Appletalk protocol support                                 
              < > DECnet Support                                             
              < > 802.1d Ethernet Bridging                                    
              QoS and/or fair queueing  --->
    然后接着我是选这个   IP: Netfilter Configuration  --->
                               
          <*> Connection tracking (required for masq/NAT) (NEW)               
         <M>   FTP protool support (NEW)                                    
         <M>   IRC protocol support (NEW)                                    
         <M> IP tables support (required for filtering/masq/NAT) (NEW)      
        <M>   limit match support (NEW)                                    
         <M>   MAC address match support (NEW)                              
         <M>   netfilter MARK match support (NEW)                           
         <M>   Multiple port match support (NEW)                             
          <M>   TOS match support (NEW)                                       
         <M>   AH/ESP match support (NEW)                                    
          <M>LENGTH match support (NEW)                                    
          <M>   TTL match support (NEW)                                       
          <M>   tcpmss match support (NEW)                                    
          <M>   Connection state match support (NEW)                          
          <M>   Packet filtering (NEW)                                       
         <M>     REJECT target support (NEW)                                 
         <M>   Full NAT (NEW)                                                
        <M>     MASQUERADE target support (NEW)                             
         <M>     REDIRECT target support (NEW)                              
         <M>   Packet mangling (NEW)                                         
         <M>     TOS target support (NEW)                                    
         <M>     MARK target support (NEW)                                   
         <M>   LOG target support (NEW)                                      
         <M>   ULOG target support (NEW)                                           >   TCPMSS target support (NEW)  
    其它基本是默认的。。
    请问我的iptables是不是还要再加选上什么啊。。。为何一重编内核就不能共享上网了。。请各位一定要帮帮忙啊。。多谢了。。。。
  • 发表于 2004-7-7 11:01:28 | 显示全部楼层
    不知道,可能 iptables 配置有误吧。。。

    我这里直接用 squid 做了 http 代理的,这样限制严格一点。
    回复

    使用道具 举报

    发表于 2004-7-7 18:20:02 | 显示全部楼层
    使用你自己编译的内核就没办法NAT?你原先的内核是2.4的现在用2.6的?
    回复

    使用道具 举报

     楼主| 发表于 2004-7-7 18:51:30 | 显示全部楼层
    我只是重编译了内核了。。原先也是2。4的内核。。。请问是不是我还有什么地方没还配置
    回复

    使用道具 举报

    发表于 2004-7-10 08:49:35 | 显示全部楼层
    用的好好的内核干嘛还要换,感觉linux和电脑diy的道理差不多,就是够用就行。最多为了更新一下对新硬件的支持多加几个模块咯
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    GMT+8, 2025-2-12 21:50 , Processed in 0.053262 second(s), 15 queries .

    © 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

    快速回复 返回顶部 返回列表