Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #191371
| From | Jason <electron@emypeople.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Simple iptables table doesn't let me forward X windows |
| Date | 2018-01-20 19:20 +0100 |
| Message-ID | <va5Ud-4cV-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi, I am trying to setup (what should be) a simple iptables table between two machines on a local network, both with static IP addresses. The machine I want to set up the iptables on is a headless server which I access using ssh. I want to cut off all communications except with the machine I ssh from. What I did works except when I try to run a GUI program on the server to display locally, after a pause I get something like: Geany: cannot open display or xterm: Xt error: Can't open display: localhost:10.0 both of which work before I run the iptables commands. Here's what I did (000.000.000.000 is substituted for actual IP address of client machine): $ sudo iptables -A INPUT -s 000.000.000.000 -j ACCEPT $ sudo iptables -A OUTPUT -d 000.000.000.000 -j ACCEPT $ sudo iptables -P INPUT DROP $ sudo iptables -P OUTPUT DROP I also tried to add $ sudo iptables -A INPUT -i lo -j ACCEPT without success. What do I need to do to get X forwarding to work? Thanks! -- Jason
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
Simple iptables table doesn't let me forward X windows Jason <electron@emypeople.net> - 2018-01-20 19:20 +0100
Re: Simple iptables table doesn't let me forward X windows Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-01-20 20:00 +0100
Re: Simple iptables table doesn't let me forward X windows Jason <electron@emypeople.net> - 2018-01-21 04:40 +0100
Re: Simple iptables table doesn't let me forward X windows Joe <joe@jretrading.com> - 2018-01-20 20:40 +0100
Re: Simple iptables table doesn't let me forward X windows deloptes <deloptes@gmail.com> - 2018-01-20 21:50 +0100
Re: Simple iptables table doesn't let me forward X windows Jason <electron@emypeople.net> - 2018-01-21 04:40 +0100
csiph-web