Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 07 Jul 2020, 13:07
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Conky connecting to internet via udp..? (SOLVED)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
craftybytes


Joined: 17 Nov 2006
Posts: 298
Location: QLD AUSTRALIA

PostPosted: Wed 18 Jun 2008, 04:07    Post subject:  Conky connecting to internet via udp..? (SOLVED)
Subject description: Why is conky even talking to the web when I'm online..?
 

I'm online (dialup) using Opera - but just ran as a test in 'rxvt' terminal:
Code:
 
sh-3.00# netstat -anp --ip
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 149.135.122.220:5731    64.233.189.165:80       ESTABLISHED 26687/seamonkey-bin
tcp        0      0 149.135.122.220:5434    209.85.173.104:80       ESTABLISHED 4104/opera         
tcp        0      0 149.135.122.220:5881    209.85.173.99:80        ESTABLISHED 4104/opera         
tcp        0      0 149.135.122.220:5877    209.85.173.99:80        ESTABLISHED 4104/opera         
udp        0      0 149.135.122.220:1508    203.50.2.71:53          ESTABLISHED 3174/conky


Now I can understand the 'opera' lines - but - what gives with the 'conky' line - wasn't aware that conky needed to talk to any external website whilst I'm online..?

Any help appreciated..

crafty.
.
.

_________________
3 x boot:- ASROCK VIA 'all-in-one' m/b; AMD Duron 1.8Ghz+; 1.0GB RAM; 20GB hdd (WinXP Pro); 80GB hdd (MEPIS 3.4-3/Puppy v2.15CE Frugal); 1GB USB pendrive (Puppy 2.15CE Frugal); CD/DVDRW; 17" LCD monitor; HSF 56k modem... MEPIS is great.. Puppy ROCKS..

Last edited by craftybytes on Sat 28 Jun 2008, 01:31; edited 1 time in total
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 2125
Location: Maine, USA

PostPosted: Wed 18 Jun 2008, 12:10    Post subject:  

What is in your conky config file? Copy and paste it here so we may have a look.
_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
Back to top
View user's profile Send private message Visit poster's website 
craftybytes


Joined: 17 Nov 2006
Posts: 298
Location: QLD AUSTRALIA

PostPosted: Thu 19 Jun 2008, 00:13    Post subject:  

Ok - that is probably a good idea..

Code:

# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8

# Text alpha when using Xft
xftalpha 0.8

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type override

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink

# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 280 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders yes

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 16
gap_y 32

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer no

# Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
#max_port_monitor_connections 256

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
#max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
#max_user_text 16384

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen
${color red}${cpugraph 0000ff 00ff00}
${color #88aadd}MPD: ${alignc}$mpd_artist - $mpd_title
${color #88aadd}$mpd_bar
${color #88aadd}${alignc}$mpd_status
 / $color${fs_used /}/${fs_size /} ${fs_bar /}
${tail /var/log/conky.log 3 30}

TEXT
$alignc${color orange}$nodename ${color orange} - ${color orange}$sysname $kernel ${color orange}on ${color orange}$machine
$alignc$color ${time %a  %x  %r}
$stippled_hr
${color lightgrey}Uptime:${color orange} $uptime ${color lightgrey}- Load:$color$loadavg
${color lightgrey}CPU Usage:${color yellow} $cpu% ${color red} ${cpubar}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${color yellow}${membar}
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${color #22ccff}${swapbar}
${color lightgrey}Processes:$color $processes  ${color lightgrey}Running:$color $running_processes
${color lightgrey}$stippled_hr
${color lightgrey}File systems:
${color lightgrey}pup_save: ${color lightgrey}${fs_used /initrd/pup_rw/} | ${fs_size /initrd/pup_rw/} Free: ${fs_free_perc /initrd/pup_rw/}% ${color orange}${fs_bar /initrd/pup_rw/}
${if_mounted /initrd/mnt/dev_save}${color lightgrey}/dev/hdc2: $color${fs_used /initrd/mnt/dev_save/} | ${fs_size /initrd/mnt/dev_save/} Free: ${fs_free_perc /initrd/mnt/dev_save/}% ${color pink}${fs_bar /initrd/mnt/dev_save/} 2>/dev/null ${endif}
${if_mounted /mnt/hdc3}${color lightgrey}/mnt/hdc3: ${color lightgrey}${fs_used /mnt/hdc3/} | ${fs_size /mnt/hdc3/} Free: ${fs_free_perc /mnt/hdc3/}% ${color lightblue}${fs_bar /mnt/hdc3/} 2>/dev/null ${endif}
${if_mounted /mnt/hdc4}${color lightgrey}/mnt/hdc4: ${color lightgrey}${fs_used /mnt/hdc4/} | ${fs_size /mnt/hdc4/} Free: ${fs_free_perc /mnt/hdc4/}% ${color yellow}${fs_bar /mnt/hdc4/} 2>/dev/null ${endif}
${if_mounted /mnt/hda1}${color lightgrey}/mnt/hda1: ${color lightgrey}${fs_used /mnt/hda1/} | ${fs_size /mnt/hda1/} Free: ${fs_free_perc /mnt/hda1/}% ${color lightgreen}${fs_bar /mnt/hda1/} 2>/dev/null ${endif}
${if_mounted /mnt/hdd}${color lightgrey}/mnt/hdd: ${color lightgrey}${fs_used /mnt/hdd/} | ${fs_size /mnt/hdd/} Free: ${fs_free_perc /mnt/hdd/}% ${color lightgreen}${fs_bar /mnt/hdd/} 2>/dev/null ${endif}
${if_mounted /mnt/sda1}${color lightgrey}/mnt/sda1: ${color lightgrey}${fs_used /mnt/sda1/} | ${fs_size /mnt/sda1/} Free: ${fs_free_perc /mnt/sda1/}% ${color #22ccff}${fs_bar /mnt/sda1/} 2>/dev/null ${endif}
${if_mounted /mnt/sda2}${color lightgrey}/mnt/sda2: ${color lightgrey}${fs_used /mnt/sda2/} | ${fs_size /mnt/sda2/} Free: ${fs_free_perc /mnt/sda2/}% ${color white}${fs_bar /mnt/sda2/} 2>/dev/null ${endif}
${color lightgrey}$stippled_hr
${color white}Name              PID     CPU%   MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color white}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
$stippled_hr
${color lightgrey}Networking:
 Down:${color pink} ${downspeed ppp0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed ppp0} k/s
${color #0000ff}${downspeedgraph ppp0 28,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph ppp0 28,150 0000ff ff0000}
$stippled_hr
${color #ddaa00}Port(s)${alignr}#Connections   
$color Inbound: ${tcp_portmon 1 65535 count}  Outbound: ${tcp_portmon 1024 65535 count}${alignr}ALL: ${tcp_portmon 1 65535 count}
${color #ddaa00}Inbound Connection ${alignr} Local Service/Port$color
 ${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
 ${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
 ${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
 ${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
 ${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
${color #ddaa00}Outbound Connection ${alignr} Remote Service/Port${color lightgrey}
 ${tcp_portmon 1024 65535 rhost 0} ${alignr} ${tcp_portmon 1024 65535 rservice 0}
 ${tcp_portmon 1024 65535 rhost 1} ${alignr} ${tcp_portmon 1024 65535 rservice 1}
 ${tcp_portmon 1024 65535 rhost 2} ${alignr} ${tcp_portmon 1024 65535 rservice 2}
 ${tcp_portmon 1024 65535 rhost 3} ${alignr} ${tcp_portmon 1024 65535 rservice 3}
 ${tcp_portmon 1024 65535 rhost 4} ${alignr} ${tcp_portmon 1024 65535 rservice 4}


Hope someone can deduce an answer..?

crafty.
.

_________________
3 x boot:- ASROCK VIA 'all-in-one' m/b; AMD Duron 1.8Ghz+; 1.0GB RAM; 20GB hdd (WinXP Pro); 80GB hdd (MEPIS 3.4-3/Puppy v2.15CE Frugal); 1GB USB pendrive (Puppy 2.15CE Frugal); CD/DVDRW; 17" LCD monitor; HSF 56k modem... MEPIS is great.. Puppy ROCKS..
Back to top
View user's profile Send private message 
erikson


Joined: 27 Feb 2008
Posts: 735
Location: Ghent, Belgium

PostPosted: Thu 19 Jun 2008, 11:45    Post subject: Re: Conky connecting to internet via udp..?
Subject description: Why is conky even talking to the web when I'm online..?
 

craftybytes wrote:
udp 0 0 149.135.122.220:1508 203.50.2.71:53 ESTABLISHED 3174/conky

Reverse dns lookup can be done e.g. from http://remote.12dt.com/

Entering ip address 203.50.2.71:
Quote:
203.50.2.71 resolves to
"lon-resolver.telstra.net"
Top Level Domain: "telstra.net"


Usage of specific ports can be found e.g. at http://www.auditmypc.com/

Info on udp port 1508
Quote:
Port Description: Diagnostic Monitor


Info on udp port 53
Quote:
Port Description: Domain Name Server (DNS). DNS servers offer different services on TCP and UDP. TCP is used for "zone transfers" of full name record databases, while UDP is used for individual lookups. Security Concerns: Zone Transfers give away entire network maps; high value to attackers. - DNS (BIND) is a popular target, since DNS servers must exist, must be reachable, and exploits usually result DOS or root. Keep BIND version/patches current (refer to www.isca.org). Use "split-DNS"


craftybytes wrote:
Hope someone can deduce an answer..?

Sure. My interpretation: apparently conky is using your ISP's dns lookup service (I don't know why, but it's harmless). I didn't check but I assume that 203.50.2.71 is Telstra's dns server. This ip address should be configured on your PC in /etc/resolv.conf (please check and confirm!)

_________________
If it ain't broke, don't fix it. --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
http://www.desonville.net/
Puppy page: http://www.desonville.net/en/joere.puppy.htm

Back to top
View user's profile Send private message Visit poster's website 
craftybytes


Joined: 17 Nov 2006
Posts: 298
Location: QLD AUSTRALIA

PostPosted: Fri 20 Jun 2008, 01:20    Post subject:  

@erikson - thanks for that info..

Yep - the ip address is Telstra's dns server..

Still - would like to know how to stop conky from accessing the net whilst I'm online - not happy that there is a prog running that does such without my say so..!!

As Puppy's 'rc.firewall' script in the '/etc/rc.d' folder is a BASH script - anybody have any script snippets that could be used to check to see what the PID of conky is for the session (it can change from one reboot to the next) and then block via an 'iptables' line the outgoing "udp" port associated with conky..?

TIA.

crafty.
.

_________________
3 x boot:- ASROCK VIA 'all-in-one' m/b; AMD Duron 1.8Ghz+; 1.0GB RAM; 20GB hdd (WinXP Pro); 80GB hdd (MEPIS 3.4-3/Puppy v2.15CE Frugal); 1GB USB pendrive (Puppy 2.15CE Frugal); CD/DVDRW; 17" LCD monitor; HSF 56k modem... MEPIS is great.. Puppy ROCKS..
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0502s ][ Queries: 11 (0.0051s) ][ GZIP on ]