Search:

Type: Posts; User: aboka; Keyword(s):

Search: Search took 0.05 seconds.

  1. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, thought of coming in here to edit my last post to stick with the original topic - 'securing vps with iptables' but you beats me to it ;)

    yup, server still running on that IP and am connected...
  2. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi SeijiSensei, great news hv manage to make it work(hopefully as i could connect and use vpn now). read a post on howto troubleshoot iptables issue by using 'watch' and making sure its connecting...
  3. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, we only use it as a vpn server so no need anything fancy i guess, just secure.

    i do not notice there a ssh in the rules? will i be lockout from the vps after applying them?

    and last, in my...
  4. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    @SeijiSensei you want me to use the ovpn file you share? but i thought the reason is with iptables, epspecially the first line 'drop all', as i could connect and use the vpn as normal if it is set to...
  5. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    The client is running on Windows so i could only run this(of what i understand) on the server. the rest i hv no idea where and how to run them -

    root@SG-UBUNTU-1:~# ip route
    default via...
  6. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, it is using 'dev tun' in the ovpn config file. hv tried adding the 'tun+' but still not working T.T

    root@SG-UBUNTU-1:~# iptables -S
    -P INPUT DROP
    -P FORWARD ACCEPT
    -P OUTPUT ACCEPT
    -A...
  7. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, i add 5555 and also 53 as wanna add all of the open ports to test now and eliminate one by one after its working. i also add both udp and tcp to all the ports.

    it is still not working so i...
  8. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    ok guys, here is the latest update - i found and use a bash script from github(https://gist.github.com/cmdwhoami/b35606eadfdc81ff173942a9e2ba5214) and make minor modifications to suit the setup. the...
  9. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, are you saying to remove this line -A POSTROUTING -s 192.168.7.0/24 -j SNAT --to-source 103.125.217.43

    it was add in the vpn setup guide. thank you.
  10. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi guys, not good as just apply the rules and i cant connect to the vpn now - vpn client cant connect to the vpn server. but i could connect to the server using ssh. here is the rules i hv applied-...
  11. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    Thanks for all the info guys, will apply the rules listed earlier, tomorrow, and update you people :)
  12. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    @TheFu it is ok and thanks for all the help and info :)
  13. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, @The Cog, thanks for inputting. im new on all this, so could u elaborate more on '...makes it harder to add another ACCEPT clause on the fly'? i mean i could still add new rules to it right...
  14. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi guys, i hv create another vps and hv applied the rules. here are the 'output' -

    root@NY-UBUNTU-01:~# iptables -S
    -P INPUT DROP
    -P FORWARD DROP
    -P OUTPUT ACCEPT
    -A INPUT -m conntrack...
  15. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    @TheFu thanks for explaining that. Will try out the iptables and then decide if wanna try ConfigServer. It is great looking at all the things it could do, but it is just little overwhelming,...
  16. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, thanks for the suggestion and it really sounds great with so many protections. but think will just stick with iptables for now as it is the 'default'. perhaps will 'upgrade' to it after all is...
  17. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    Please take a look and see if this is ok, and if there is anything left out.

    sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT # for the current session
    sudo iptables...
  18. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, thanks for the prompt reply :) could we do it on Windows or use web service like canyouseeme.org?

    i just check on my Windows(while connected to the server using Softether vpn) and goto...
  19. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    @TheFu - for the localhost, i will just use what @SeijiSensei suggest as i find out localhost is the same as loopback.

    Can you pls explain this - 'Open ports as seen on the server are always...
  20. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, the ultimate goal is to secure the whole vps, will do the rest of what you suggest after done with iptables.

    I suppose you are talking about the dnsmasq when you say 'dns server on the...
  21. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    p/ss- Softether is using 4 ports by default 443, 992, 1194 & 5555. and 500 & 4500 if using L2TP, MS-SSTP etc. but i hv deleted 992 as read on couple sites saying it is'useless'
  22. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, am reading lotsa info online rgd this and i think i will write the rules base on that and your advice here tomorrow. will post back here before applying them on the vps

    p/s - will omit the...
  23. Replies
    45
    Views
    46

    Re: Will using iptables secure Ubuntu?

    hi, thanks for the reply. im the only one accessing the vps using ssh. here are the list of open ports utilize currently -
    1194 vpnserver
    5555 vpnserver
    443 vpnserver
    22 sshd
    53 dnsmasq

    do we...
  24. Replies
    45
    Views
    46

    Will using iptables secure Ubuntu?

    hi, just starting to learn Ubuntu and hv install the latest 20.04 on a vps along with Softether and everything is running fine.

    Will iptables help secure a vps? It should be able to help, since...
Results 1 to 24 of 24