I have been running TomatoUSB for many months now, and it has been working well. I have a server sitting behind my router that I use for email. On the router, I have set up port forwards so that any incoming connections on IMAPS port gets forwared to my email server.
This has been working well, and I have had no problems with this setup.
Recently, I decided to have the email server connect to a remote VPN server. It has been configured as an OpenVPN client, and everything seems to be working nicely. I can connect to my mail server from other computers on my internal network.
The only problem I am having now is that the port forward from the TomatoUSB router to my mail server does not work. When I try to connect to the mail server, I get nothing. The connection from the client that is outside of my local network appears to times out based on the messages I get from the email client.
I am not very knowledgeable about iptables, but I have tried to add some logging. Nothing appears in the logs on the router, or on the mail server when I try to connect via an external ip.
Any ideas on what could be wrong?
Would any other info be needed to figure this out?
iptables rules on the email server:
iptables -A INPUT -i tun+ -j ACCEPT iptables -A OUTPUT -o tun+ -j ACCEPT iptables -A INPUT -s 127.0.0.1 -j ACCEPT iptables -A OUTPUT -d 127.0.0.1 -j ACCEPT ... A bunch of rules to accept the ip addresses that the VPN server could be on iptables -A INPUT -s xxx.xxx.xxx.xxx -j ACCEPT iptables -A OUTPUT -d xxx.xxx.xxx.xxx -j ACCEPT ... iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT iptables -A OUTPUT -d 192.168.1.0/24 -j ACCEPT # Log dropped packets iptables -N LOGGING iptables -A INPUT -j LOGGING iptables -A LOGGING -m limit --limit 2/min -j LOG --log-prefix "IPTables Packet Dropped: " --log-level 7 iptables -A LOGGING -j DROP iptables -A INPUT -j DROP iptables -A OUTPUT -j DROP