From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7ACE3C54EAA for ; Fri, 27 Jan 2023 15:13:43 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.96) (envelope-from ) id 1pLQPu-0000FH-2O; Fri, 27 Jan 2023 10:13:26 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1pLQPs-0000CX-0D for kernelnewbies@kernelnewbies.org; Fri, 27 Jan 2023 10:13:24 -0500 Received: by mail-pl1-x62d.google.com with SMTP id k18so5246466pll.5 for ; Fri, 27 Jan 2023 07:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=65NY3ktgX0ISx/ZbXTWg7VfqBss9K/8JlAaZ1nTWKeM=; b=c3bhQKgqeqC0Jdb1j6reNyM6ZHIrdAjQ2oJYXAmXwwA2w+c1BwnpXusGPDmn7k20HW LURDBEX+4vg8y/+bOg8sMTcDqEeDEUTSsDgFxn1qFWxvEFsBs/PtpA5Z8kSOPx+oqc2T QX/HOgaGPJdOMRgiFxgaOQGa1+cFEUOun2SL+SrjPSvc7pFL0CLPFgVsecv2+GnK4WGs oJYbCV3adLuq5ahqE6NeGKd4yHL0CaCBbjY6gs669iSpP1Igy9LMkOHr5QNNWPPZ+3x1 jpiUw6UVHsj0jFvUsnE80Et1MVNmE20qqpWcMsodiLSZNa2PRi7vKiI97H06s0NLq3l4 sxKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=65NY3ktgX0ISx/ZbXTWg7VfqBss9K/8JlAaZ1nTWKeM=; b=rq8J8nooAKS3veuuEo5b6fCgPK5AB+hn9aIhGSkpDtq9B9nnZS8d+fNOH08NqTPz3J +Q5CEmmUY5H1bv8tyr+uUmjhRNuJJ4DFY1qlbTjU/x+CYXOtWBTvQtQb4AxfKN66dlvC ZG3L13HNmqBVCiCQy4sGmtJQxRlm0xHQ+FuAJ2zhnxNF28Iic01170E6vXWdK7dicrlB KQmVEy3FIZfPqOygsXw+aLWNeBDUKHkUiNi8ul/W2layYd5zgTFilT2qDWx/+2YYkyld gd2EvBUi+hWUM/gIULpmkUqVor019Ar4q6Yfcq10fPGIgxhyNzdbX/UUF3JjWSls5EXi 7pHw== X-Gm-Message-State: AFqh2krerRuoS+/itHNsyfLGfjPXKWzMZFTmBbBDOEiR992JOqo88e6E RJp7SsowTRQfikWayXUAUKJ/mY5jtGy1pWLnL3yK7POhq20= X-Google-Smtp-Source: AMrXdXuD6UNMsyNjmsP0IYoUtXYe6GVMPgkzRN5OSKerlzOi6TeVr7RMkLNMqEFF4QwTGicYV3oQQ6WRqtuaAMmOjuQ= X-Received: by 2002:a17:90a:4a03:b0:225:f003:cd15 with SMTP id e3-20020a17090a4a0300b00225f003cd15mr6091218pjh.34.1674832401769; Fri, 27 Jan 2023 07:13:21 -0800 (PST) MIME-Version: 1.0 From: Abdul Matin Date: Fri, 27 Jan 2023 21:13:08 +0600 Message-ID: Subject: Guideline on Linux NAT feature To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4362133625075156480==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============4362133625075156480== Content-Type: multipart/alternative; boundary="0000000000005dabb005f3404e18" --0000000000005dabb005f3404e18 Content-Type: text/plain; charset="UTF-8" Hi, I'm a novice in Kernel development. This is the first time I'm writing here. I need to develop something similar to FTP ALG on Active mode. That is, I will inspect some packets while passing through the NAT then based on some conditions I will set permission for an IP of another device/NAT on the internet so that it can send packets directly to an internal device. I'm reading some books on Linux kernel device driver development. I know I'll have to do that using the Netfilter subsystem of the linux kernel. To learn how ftp alg is implemented I've been searching for source in kernel source, although I found code that mangles the packet of PORT command of FTP connection but I can't find where the mapping thing is done for Active mode of FTP. Which file should I read to know about how FTP alg for active mode makes a server connect to a client behind NAT? I'd appreciate any replies. --0000000000005dabb005f3404e18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I'm a novice in Kernel development. This is the fi= rst time I'm writing here. I need to develop=C2=A0something similar to = FTP ALG on Active mode. That is, I will inspect some packets while passing = through the NAT then based on some conditions I will set permission for an = IP of another device/NAT on the internet so that it can send packets direct= ly to an internal device. I'm reading some books on Linux kernel device= driver development. I know I'll have to do that using the Netfilter su= bsystem of the linux kernel. To learn how ftp alg is implemented I've b= een searching for source in kernel source, although I found code that mangl= es the packet of PORT command of FTP connection but I can't find where = the mapping thing is done for Active mode of FTP. Which file should I read = to know about how FTP alg for active mode makes a server connect to a clien= t behind NAT? I'd appreciate=C2=A0any replies.=C2=A0
--0000000000005dabb005f3404e18-- --===============4362133625075156480== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============4362133625075156480==--