From nobody Tue Oct 12 23:39:52 2021 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5231B1800C93 for ; Tue, 12 Oct 2021 23:41:18 +0000 (UTC) (envelope-from freebsd-database@pp.dyndns.biz) Received: from keymaster.home (ns1.xn--wesstrm-f1a.se [81.4.102.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "keymaster.pp.dyndns.biz", Issuer "keymaster.pp.dyndns.biz" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HTXHK3kpFz4qCt for ; Tue, 12 Oct 2021 23:41:17 +0000 (UTC) (envelope-from freebsd-database@pp.dyndns.biz) Received: from [192.168.254.0] ([192.168.254.0]) by keymaster.home (8.16.1/8.16.1) with ESMTP id 19CNdqmG085849 for ; Wed, 13 Oct 2021 01:39:52 +0200 (CEST) (envelope-from freebsd-database@pp.dyndns.biz) Subject: Re: Mail Traffic To: questions@freebsd.org References: <20211012080454.f14bb36b1d92b67aaf7e1c78@web.de> From: =?UTF-8?Q?Morgan_Wesstr=c3=b6m?= Message-ID: <619c32af-ff87-70ac-a02f-ae1c6f7ed319@pp.dyndns.biz> Date: Wed, 13 Oct 2021 01:39:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 In-Reply-To: <20211012080454.f14bb36b1d92b67aaf7e1c78@web.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HTXHK3kpFz4qCt X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-database@pp.dyndns.biz has no SPF policy when checking 81.4.102.176) smtp.mailfrom=freebsd-database@pp.dyndns.biz X-Spamd-Result: default: False [2.28 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.81)[-0.811]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.89)[0.891]; HFILTER_HELO_IP_A(1.00)[keymaster.home]; NEURAL_HAM_SHORT(-1.00)[-1.000]; HFILTER_HELO_NORES_A_OR_MX(0.30)[keymaster.home]; R_SPF_NA(0.00)[no SPF record]; DMARC_NA(0.00)[pp.dyndns.biz]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:198203, ipnet:81.4.100.0/22, country:NL]; RCVD_COUNT_TWO(0.00)[2]; R_MIXED_CHARSET(1.00)[subject] X-ThisMailContainsUnwantedMimeParts: N On 2021-10-12 08:04, Silvio Siefke wrote: > Hello, > > I have VPS as webhost which blocked port 25 by ISP. Is there a chance > to route the traffic over the vpn Network? > > My Mailserver had the internal IP 192.168.0.109. I had try it with hosts > file but it will not work. > > Is there a chance to make it with pf? > > Thank you for ideas. > > Silvio > I didn't fully understand your first paragraph but this is how I do it and I hope I understood your question correctly. :) My ISP blocks outgoing port 25 too (like most ISPs do these days). I have a VPS on RamNode, who doesn't block anything, and I run my mail-server there. I connect my LAN and that VPS through an OpenVPN tunnel and I can now send and receive mail from any machine on my LAN with no problems. In pf I just do a pass all on the tun interfaces but nothing stops you from creating a rule that just pass the data on port 25/587. Regards Morgan