Cannot figure it out

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
bubbacheese
OpenVpn Newbie
Posts: 1
Joined: Sun Nov 12, 2023 1:15 am

Cannot figure it out

Post by bubbacheese » Sun Nov 12, 2023 1:23 am

I'm a home user that has my own Email server, I decided to try and switch things around and found out that my ISP doesn't allow Port forwarding. So next solution was to try and use my OpenVPN server to get it working. The issue I'm running into is either I can send or I can receive not both.

If I add iptables -t nat -A PREROUTING -p tcp -m tcp --dport 25 -j DNAT --to-destination 10.8.0.6:25 then I can only receive, can't send.

If I use iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 25 -j DNAT --to-destination 10.8.0.6:25 then I can send but can't receive.

I've tried a days worth of troubleshooting and just cannot grap what is missing. I checked and don't have any SMTPd running on the OpenVPN, It has to be some type of routing issue as the message failures are it can't connect to said IP address as it times out.

Any ideas?

Thanks.

NM solved it. I was using the wrong venet0 interface, the IPtable with -i

Post Reply