Re: iptables

"Manu" <[email protected]>
Newsgroups gmane.linux.debian.devel.firewall
Message-ID <E04B6366A60A4F0AB7F784C8B596E3BF@AsusEEPC1011Manu>
Hi,
Thank you for lot of reply
Wan protocole is IPoA. So I think I can keep eth0 ?
On my debian server, I have dhcp server (isc-dhcp-server), asterisk, apache, samba.
On my windows server, I have ftp server,, sam broadcaster...
I will try to route as you explain to me, and I will tell you later.
Thank you again
  ----- Original Message ----- 
  From: Eden Caldas 
  To: Javier Charne 
  Cc: [email protected] 
  Sent: Wednesday, June 22, 2011 10:53 PM
  Subject: Re: iptables


  Since it's a dsl maybe the interface is ppp0 ? Check if this interface comes up when you dial in.

  Eden Caldas
  Consultor de TI
  [email protected]
  (81) 9653 7220
  LINUX FÁCIL – Consultoria e Serviços em TI



  2011/6/22 Javier Charne <[email protected]>

    El 22/06/11 17:19, Manu escribió: 
      Hello,
      I'm French, I'm sorry for my bad english.
      I'm a beginner debian user.
      In my home network, I have a linux machine with debian6.
      My debian has to do dhcp server with isc-server.
      I have 2 network card, eth0 = public Ip (adsl modem)
      eth1 = lan.
      My dhcp server runs.
      But I can't connect to internet with pc's.
      Description :

      network  : 10.20.30.0
      mask : 255.255.255.0
      Windows server: 10.20.30.2
      Linux server (Debian6) : 10.20.30.1 (DHCP a    nd gateway to wan)
      Accesspoint Wifi : 10.20.30.3
      NAS server : 10.20.30.4
      MAO PC: 10.20.30.5
      laptop : 10.20.30.6
      IP phone : 10.20.30.7, 10.20.30.8, 10.20.30.9
      I can connect to lan machines but not to wan.

      cat /proc/sys/net/ipv4/ip_forward is 1
       
      What are routes I have to create with route command ?
      How can I routed 80 port to 10.20.30.1  with iptables ?
      thank you for your help !
       



    Manu:

    Check if 10.20.30.1 is default gateway for all devices in LAN.

    In Debian Server, traffic to Internet must be nated:

    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



    Javier.-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.