arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My VPS 1 Firewall issue
#7
(07-11-2019, 11:53 AM)Rehan Wrote: I searched the forum and found a tutorial about iptables configurations.I found a guide about its configuration.
https://post4vps.com/thread-2643.html

In that thread i started the steps to secure firewall.Unfortunately on step two when i input the command
iptables -P OUTPUT ACCEPT
My SSH connections lost, i tried reconnecting but failed to connect.Then i restarted the VPS from control panel and re-connected but did not tried running that command again.

Have you paid attention to the explanation of the commands that was under the commands?

Incoming traffic is blocked by default unless allowed through additional rules. --> Incoming = INPUT --> iptables -P INPUT DROP
Forward traffic is blocked by default unless allowed through additional rules. --> Forward = FORWARD --> iptables -P FORWARD DROP
Outgoing traffic is allowed by default unless blocked through additional rules. --> Outgoing = OUTPUT --> iptables -P OUTPUT ACCEPT

That means you have executed the command when directly connected via SSH. That's a bad idea if you understand what "blocking traffic" means and have read the explanation for the commands.

As soon as you run "iptables -P INPUT DROP" all incoming traffic is instantly dropped. This cuts all connections including SSH instantly. Be careful!


It would have been better if you would have ran these commands through a VNC or emergency console that is provided by the control panel of your VPS or a script that runs all the commands and therefore unlocks traffic to port 22 and etc.
[Image: zHHqO5Q.png]
lockThread Closed 


Messages In This Thread
My VPS 1 Firewall issue - by Melvin - 07-09-2019, 12:56 AM
RE: My VPS 1 Firewall issue - by chanalku91 - 07-09-2019, 01:02 AM
RE: My VPS 1 Firewall issue - by Melvin - 07-09-2019, 11:44 AM
RE: My VPS 1 Firewall issue - by Manal - 07-09-2019, 03:38 AM
RE: My VPS 1 Firewall issue - by chanalku91 - 07-09-2019, 01:58 PM
RE: My VPS 1 Firewall issue - by Rehan - 07-11-2019, 11:53 AM
RE: My VPS 1 Firewall issue - by Mashiro - 07-11-2019, 05:29 PM
RE: My VPS 1 Firewall issue - by Melvin - 07-12-2019, 02:09 PM
RE: My VPS 1 Firewall issue - by Rehan - 07-12-2019, 05:00 PM
RE: My VPS 1 Firewall issue - by Melvin - 07-12-2019, 05:40 PM
RE: My VPS 1 Firewall issue - by deanhills - 07-15-2019, 02:08 AM
RE: My VPS 1 Firewall issue - by Rehan - 07-13-2019, 03:30 AM
RE: My VPS 1 Firewall issue - by Melvin - 07-13-2019, 07:39 AM
RE: My VPS 1 Firewall issue - by Mashiro - 07-15-2019, 06:03 PM
RE: My VPS 1 Firewall issue - by Melvin - 07-15-2019, 09:12 PM
RE: My VPS 1 Firewall issue - by deanhills - 07-15-2019, 11:02 PM
RE: My VPS 1 Firewall issue - by deanhills - 07-16-2019, 12:28 AM
RE: My VPS 1 Firewall issue - by Rehan - 07-16-2019, 02:33 AM
RE: My VPS 1 Firewall issue - by deanhills - 07-16-2019, 06:51 AM
RE: My VPS 1 Firewall issue - by Rehan - 07-16-2019, 08:28 AM
RE: My VPS 1 Firewall issue - by Melvin - 07-19-2019, 11:41 AM
RE: My VPS 1 Firewall issue - by deanhills - 07-19-2019, 09:19 PM
RE: My VPS 1 Firewall issue - by perry - 07-19-2019, 09:20 PM
RE: My VPS 1 Firewall issue - by deanhills - 07-19-2019, 09:23 PM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
1,614
07-21-2019, 02:17 AM
Last Post: deanhills
4,282
03-19-2018, 07:39 AM
Last Post: perry
3,880
02-10-2017, 11:44 AM
Last Post: Arkiven4

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting