Jump to content
Not connected, Your IP: 3.147.6.122
Sign in to follow this  
sooprtruffaut

ANSWERED Port Forwarding Issues through Rasberry Pi Gateway

Recommended Posts

Hey,

I have set up AirVPN on a raspberry pi and configured the pi to be a VPN gateway for my home. The gateway is working fine and I want to expand its capabilities to act as a seed box. Transmission is now install on the pi and working fine, except I can't open a port on the pi for uploads. I believe the fact that the pi is acting as a gateway as well and has specific iptable rules established is complicating matters. I have also followed the instruction on the site about p2p port forwarding so if you can offer any help with this matter I'd very much appreciate it!

These are the iptables for the gateway. What rules should I add so that I can open a port through Air's port forwarding page? 

Much obliged.

iptables 

sudo iptables -S

-P INPUT ACCEPT

-P FORWARD ACCEPT

-P OUTPUT ACCEPT

-A INPUT -i tun0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

-A INPUT -i tun0 -j DROP

 

sudo iptables -t nat -S

-P PREROUTING ACCEPT

-P INPUT ACCEPT

-P OUTPUT ACCEPT

-P POSTROUTING ACCEPT

-A POSTROUTING -o tun0 -j MASQUERADE

 

 

 

 

Share this post


Link to post

Change -A INPUT -i tun0 -j DROP to -A INPUT -i tun0 -j ACCEPT and remove the above conntrack rule.

There will be more sense to add NEW to conntrack states if you plan to use it anyway, otherwise new connections cannot be accepted.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...