I have 2 dsl accounts. One is general use which is setup on my router and the second is setup on a server. My router is secured nicely, but I noticed after setting up PPPoe on my server that the router security is completely bypassed and all ports on my server are essentially open to the world.
So I tried this do block all connections on PPP
iptables -A INPUT -i ppp0 -p tcp -j DROP
iptables -I INPUT -i ppp0 -p tcp --dport 563 -j ACCEPT
But now I cannot connect to or from port 563.
I suspect that I am fundamentally misunderstanding how iptables work.
Order matters! You're not going down the wrong route, but you need to change the order. Put the ACCEPT first, then the REJECT, and you'll be fine.
You need to set a few default rules, and then a policy for the rest. This is a nice starting point:
Then you can add your rule: